Prerequisites
You will need:- Your CDP API Key ID and secret
- A server exposed via an HTTPS URL to receive the webhook events
- cdpcurl installed
Create a webhook subscription
- Prepare your subscription configuration:
target.url
should be your webhook endpoint that will receive the events. E.g., your server endpoint.isEnabled
can be set to false if you don’t want to immediately receive events.labels
requires both acontract_address
andevent_name
field. All other fields (e.g.transaction_from
) are optional.eventTypes
should follow the three-dot formatservice.resource.verb
.- You can also set a
headers
object intarget
if your url requires specific headers:
- Create the webhook subscription:
subscriptionId
from the response to view, update, or delete the subscription.
List all subscriptions