Setup Webhook Subscription via API
Stream events to your system
Overview
This guide explains how to receive different events in your system using webhooks.
Please note that Balance Extract webhook requires an additional step of configuring an extract in the UI. This additional step is described in Event Types
Before You Start
Make sure you are familiar with:
- Webhook concepts → Webhooks Overview
- Request validation → Webhook Security
- Delivery behavior and retries → Delivery & Retries
- API access and permissions → Webhook Configuration
Step 1 — Create a Webhook Secret
A webhook secret is used to sign requests so your system can verify their authenticity.
Create a secret using the API:
- Store the returned
valueproperty securely. - You will need it to validate webhook signatures.
Step 2 — Create a Webhook Subscription
A subscription defines where events should be delivered.
Here you will need to provide:
Request
Step 3 — Configure Your Receiver
Your webhook endpoint must:
- Accept POST requests
- Accept application/json payloads
- Validate the webhook signature
- Handle duplicate deliveries using the
Idempotency-Key
See:
The list of available Event Types can be found here
Testing the Integration
To verify your setup:
- Trigger a balance extract manually
- Confirm your endpoint receives the request
- Validate the signature
- Ensure the event is processed successfully
If the endpoint does not return 2xx, the delivery will be retried automatically.