curl --request PATCH \
--url https://sandbox.api.byzantine.fi/v1/webhooks/subscriptions/{subscription_id} \
--header 'Content-Type: application/json' \
--header 'X-Pubkey: <x-pubkey>' \
--header 'X-Pubkey, X-Timestamp, X-Signature: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"url": "<string>",
"name": "<string>",
"enabled": true,
"eventTypes": [
"<string>"
],
"httpHeaders": {}
}
'import requests
url = "https://sandbox.api.byzantine.fi/v1/webhooks/subscriptions/{subscription_id}"
payload = {
"url": "<string>",
"name": "<string>",
"enabled": True,
"eventTypes": ["<string>"],
"httpHeaders": {}
}
headers = {
"X-Pubkey": "<x-pubkey>",
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"X-Pubkey, X-Timestamp, X-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'X-Pubkey': '<x-pubkey>',
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'X-Pubkey, X-Timestamp, X-Signature': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: '<string>',
name: '<string>',
enabled: true,
eventTypes: ['<string>'],
httpHeaders: {}
})
};
fetch('https://sandbox.api.byzantine.fi/v1/webhooks/subscriptions/{subscription_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"subscription": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"integratorId": "550e8400-e29b-41d4-a716-446655440000",
"url": "<string>",
"enabled": true,
"eventTypes": "<unknown>",
"endpointSafetyMetadata": "<unknown>",
"httpHeaders": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"activeSigningKeyId": "550e8400-e29b-41d4-a716-446655440000"
},
"publicKey": "<string>",
"algorithm": "<string>"
}{
"error": "Resource not found",
"status": 404
}{
"error": "Resource not found",
"status": 404
}Update a webhook subscription.
Updates an integrator-owned webhook subscription. URL changes are revalidated for endpoint safety before being persisted.
curl --request PATCH \
--url https://sandbox.api.byzantine.fi/v1/webhooks/subscriptions/{subscription_id} \
--header 'Content-Type: application/json' \
--header 'X-Pubkey: <x-pubkey>' \
--header 'X-Pubkey, X-Timestamp, X-Signature: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>' \
--data '
{
"url": "<string>",
"name": "<string>",
"enabled": true,
"eventTypes": [
"<string>"
],
"httpHeaders": {}
}
'import requests
url = "https://sandbox.api.byzantine.fi/v1/webhooks/subscriptions/{subscription_id}"
payload = {
"url": "<string>",
"name": "<string>",
"enabled": True,
"eventTypes": ["<string>"],
"httpHeaders": {}
}
headers = {
"X-Pubkey": "<x-pubkey>",
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>",
"X-Pubkey, X-Timestamp, X-Signature": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'X-Pubkey': '<x-pubkey>',
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>',
'X-Pubkey, X-Timestamp, X-Signature': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
url: '<string>',
name: '<string>',
enabled: true,
eventTypes: ['<string>'],
httpHeaders: {}
})
};
fetch('https://sandbox.api.byzantine.fi/v1/webhooks/subscriptions/{subscription_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"subscription": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"integratorId": "550e8400-e29b-41d4-a716-446655440000",
"url": "<string>",
"enabled": true,
"eventTypes": "<unknown>",
"endpointSafetyMetadata": "<unknown>",
"httpHeaders": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"name": "<string>",
"activeSigningKeyId": "550e8400-e29b-41d4-a716-446655440000"
},
"publicKey": "<string>",
"algorithm": "<string>"
}{
"error": "Resource not found",
"status": 404
}{
"error": "Resource not found",
"status": 404
}Authorizations
Headers
Integrator's ECDSA public key (P-256 curve, compressed SEC1 format). Example: 0x038fedef7c12f93bbf342ad8943b7a825a3b41f61c9dc118b2c718efebabbf62fd
Unix timestamp in seconds (UTC). Must be within tolerance window (1 minute) to prevent replay attacks. Example: 1760375826
ECDSA signature (DER-encoded, hex with 0x prefix). Signs the message: {timestamp}{METHOD}{path_and_query}{json_body}. Example: 0x3045022100...
Body
Per-header patch merged into the current custom headers: a string sets or replaces that header, null deletes it, and an absent name keeps its value. Omit, null or {} to leave all headers unchanged. Every name in the patch must be a valid, non-reserved HTTP header name; limits (max 16, 8 KiB total) and case-insensitive duplicates are validated on the merged result.
Show child attributes
Show child attributes

