Update an existing webhook subscription’s configuration including event types, target URL, filtering criteria, and enabled status. All required fields must be provided, even if they are not being changed.
A JWT signed using your CDP API Key Secret, encoded in base64. Refer to the Generate Bearer Token section of our Authentication docs for information on how to generate your Bearer Token.
Unique identifier for the webhook subscription.
Request to update an existing webhook subscription. The update format must match the original subscription format (traditional or multi-label).
Types of events to subscribe to. Event types follow a three-part dot-separated format: service.resource.verb (e.g., "wallet.transaction.created", "token.transfer.completed").
[
"wallet.transaction.created",
"token.transfer.completed",
"wallet.transaction.failed"
]Whether the subscription is enabled.
false
Target configuration for webhook delivery. Specifies the destination URL and any custom headers to include in webhook requests.
{
"url": "https://api.example.com/webhooks",
"headers": {
"Authorization": "Bearer token123",
"Content-Type": "application/json"
}
}Label key for filtering events. Use either (labelKey + labelValue) OR labels, not both.
"contract_address"
Label value for filtering events. Use either (labelKey + labelValue) OR labels, not both.
"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
Description of the webhook subscription.
"Updated subscription for token transfer events"
Additional metadata for the subscription.
{
"updated_field": "updated_value",
"webhook_version": "v2"
}Multi-label filters using total overlap logic. Total overlap means the subscription will only trigger when an event contains ALL the key-value pairs specified here. Use either labels OR (labelKey + labelValue), not both.
{ "env": "prod", "service": "api" }Webhook subscription updated successfully.
Response containing webhook subscription details.
When the subscription was created.
"2025-01-15T10:30:00Z"
Types of events to subscribe to. Event types follow a three-part dot-separated format: service.resource.verb (e.g., "wallet.transaction.created", "token.transfer.completed").
[
"wallet.transaction.created",
"token.transfer.completed"
]Whether the subscription is enabled.
true
Unique identifier for the subscription.
"123e4567-e89b-12d3-a456-426614174000"
Target configuration for webhook delivery. Specifies the destination URL and any custom headers to include in webhook requests.
{
"url": "https://api.example.com/webhooks",
"headers": {
"Authorization": "Bearer token123",
"Content-Type": "application/json"
}
}Description of the webhook subscription.
"Subscription for token transfer events"
Additional metadata for the subscription.
{
"secret": "123e4567-e89b-12d3-a456-426614174000"
}Label key for filtering events. Present when subscription uses traditional single-label format.
"contract_address"
Label value for filtering events. Present when subscription uses traditional single-label format.
"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
Multi-label filters using total overlap logic. Total overlap means the subscription only triggers when events contain ALL these key-value pairs. Present when subscription uses multi-label format.
{
"env": "dev",
"team": "payments",
"contract_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
}