Update webhook endpoint
curl --request PATCH \
--url https://api.beta.getpara.com/v1/webhook-endpoints/{endpointId} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"url": "<string>",
"events": [],
"enabled": true,
"description": "<string>"
}
'import requests
url = "https://api.beta.getpara.com/v1/webhook-endpoints/{endpointId}"
payload = {
"url": "<string>",
"events": [],
"enabled": True,
"description": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>', events: [], enabled: true, description: '<string>'})
};
fetch('https://api.beta.getpara.com/v1/webhook-endpoints/{endpointId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.beta.getpara.com/v1/webhook-endpoints/{endpointId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'url' => '<string>',
'events' => [
],
'enabled' => true,
'description' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.beta.getpara.com/v1/webhook-endpoints/{endpointId}"
payload := strings.NewReader("{\n \"url\": \"<string>\",\n \"events\": [],\n \"enabled\": true,\n \"description\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.beta.getpara.com/v1/webhook-endpoints/{endpointId}")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"<string>\",\n \"events\": [],\n \"enabled\": true,\n \"description\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.beta.getpara.com/v1/webhook-endpoints/{endpointId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"<string>\",\n \"events\": [],\n \"enabled\": true,\n \"description\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "9a3d5f2e-1b4c-48d0-9e7a-3c2b1f4e5d6a",
"url": "https://example.com/webhooks/para",
"events": [
"user.created"
],
"enabled": true,
"description": "Production billing receiver",
"payloadVersion": 1,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"code": "INVALID_REQUEST",
"message": "type must be one of EVM, SOLANA, COSMOS, STELLAR, SUI"
}{
"code": "UNAUTHORIZED",
"message": "secret api key not provided"
}{
"code": "FORBIDDEN",
"message": "invalid secret api key"
}{
"code": "NOT_FOUND",
"message": "Webhook endpoint not found"
}{
"code": "RATE_LIMITED",
"message": "Rate limit exceeded for webhook configuration. Try again in a minute."
}{
"code": "INTERNAL_ERROR",
"message": "Internal Server Error"
}Webhooks
Update webhook endpoint
Update one or more fields on an existing webhook endpoint. At least one updatable field is required, and unknown fields are rejected with 400.
Updating url to a different HTTPS URL resets the endpoint’s consecutive failure count and clears any active delivery hold. Toggling enabled or changing events does not clear an active hold.
Configuration mutations share a per-key rate limit of 10 requests per minute.
PATCH
/
v1
/
webhook-endpoints
/
{endpointId}
Update webhook endpoint
curl --request PATCH \
--url https://api.beta.getpara.com/v1/webhook-endpoints/{endpointId} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"url": "<string>",
"events": [],
"enabled": true,
"description": "<string>"
}
'import requests
url = "https://api.beta.getpara.com/v1/webhook-endpoints/{endpointId}"
payload = {
"url": "<string>",
"events": [],
"enabled": True,
"description": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({url: '<string>', events: [], enabled: true, description: '<string>'})
};
fetch('https://api.beta.getpara.com/v1/webhook-endpoints/{endpointId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.beta.getpara.com/v1/webhook-endpoints/{endpointId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'url' => '<string>',
'events' => [
],
'enabled' => true,
'description' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.beta.getpara.com/v1/webhook-endpoints/{endpointId}"
payload := strings.NewReader("{\n \"url\": \"<string>\",\n \"events\": [],\n \"enabled\": true,\n \"description\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.beta.getpara.com/v1/webhook-endpoints/{endpointId}")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"<string>\",\n \"events\": [],\n \"enabled\": true,\n \"description\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.beta.getpara.com/v1/webhook-endpoints/{endpointId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"<string>\",\n \"events\": [],\n \"enabled\": true,\n \"description\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "9a3d5f2e-1b4c-48d0-9e7a-3c2b1f4e5d6a",
"url": "https://example.com/webhooks/para",
"events": [
"user.created"
],
"enabled": true,
"description": "Production billing receiver",
"payloadVersion": 1,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}{
"code": "INVALID_REQUEST",
"message": "type must be one of EVM, SOLANA, COSMOS, STELLAR, SUI"
}{
"code": "UNAUTHORIZED",
"message": "secret api key not provided"
}{
"code": "FORBIDDEN",
"message": "invalid secret api key"
}{
"code": "NOT_FOUND",
"message": "Webhook endpoint not found"
}{
"code": "RATE_LIMITED",
"message": "Rate limit exceeded for webhook configuration. Try again in a minute."
}{
"code": "INTERNAL_ERROR",
"message": "Internal Server Error"
}Authorizations
Path Parameters
Body
application/json
Replacement list of subscribable event types.
Minimum array length:
1Webhook event types that an endpoint can subscribe to.
Available options:
user.created, wallet.created, transaction.signed, send.broadcasted, send.confirmed, send.failed, rest.transaction.confirmed, rest.transaction.failed, wallet.pregen_claimed, user.external_wallet_verified, onramp.completed, user.two_factor_reset, funds.received, approval.pending, approval.approved, approval.rejected, approval.executed, approval.expired, approval.failed, rest.transaction.broadcasted, rest.transaction.still_pending, rest.transaction.reverted, rest.transaction.replaced, send.still_pending, send.reverted, send.replaced, user.authenticated, user.account_linked, user.account_unlinked, user.two_factor_enabled, user.two_factor_removed, wallet.recovery_started, wallet.recovered, funds.sent, policy.activated, policy.archived, consent.granted, consent.revoked, onramp.cancelled, user.merged, wallet.private_key_exported