Loading...
Loading...
The easiest way to manage Webhook subscriptions is in the Quiltt Dashboard. You can also interact with your Webhook subscriptions via API, using the /webhooks/subscriptions endpoint.
The following endpoint can be used to create a new Webhook subscription via API:
POSThttps://api.quiltt.io/v1/webhooks/subscriptionsCopy endpoint URL to clipboardThe following HTTP headers must be provided:
Requests must include a JSON body with the name of your subscription, a list of eventTypes, and the targetUrl that should receive the webhooks.
Here is an example request that will create a subscription to account.verified events.
When a Webhook event is triggered, Quiltt will send a POST request to the targetUrl specified in the subscription. The request will include a JSON payload with the details of the event.
The following examples show how you could parse the received JSON payload and decide how to process the data of each event, based on its type.