Customer guide · Developers
Webhooks
Events, payload, signature check and retries.
Open the customer portalWebhooks push events to your server as they happen. Set them up in API & Webhooks → Webhooks.
Add an endpoint
- The URL must use HTTPS and be reachable from the internet. Private, loopback and internal addresses are refused.
- Choose the events to receive. You can have up to 10 endpoints.
- Copy the signing secret — it is shown only once. Rotate secret creates a new one.
- Pause / Resume stops and restarts deliveries; the delivery log shows the last 100 deliveries with their status.
| Event | Sent when |
|---|---|
call.started | A call to one of your numbers starts |
call.ended | A call ends |
number.activated | A number becomes active |
number.suspended | A number is suspended |
wallet.low_balance | Your available balance drops below your low-balance alert |
deposit.approved | A deposit is credited |
sms.received | An SMS arrives (needs the SMS webhook service) |
What we send
A POST with a JSON body:
{
"id": "…",
"event": "deposit.approved",
"createdAt": "2026-11-05T10:00:00.000Z",
"data": { … }
}Headers:
X-Webhook-Event: the event name;X-Signature: t=<unix time>,v1=<hex>wherev1is the HMAC-SHA256 of"<t>.<raw body>"with your signing secret.
Verify the signature
- Split
X-Signatureintotandv1. - Reject the request if
tis more than 300 seconds away from your clock. - Compute HMAC-SHA256 over the string
t + "." + rawBodywith your secret and compare it withv1using a constant-time comparison.
// Node.js example
const [t, v1] = header.split(',').map((p) => p.split('=')[1]);
const expected = crypto.createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
const ok = Math.abs(Date.now() / 1000 - Number(t)) <= 300 &&
crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1));Use the raw request body exactly as received — parsing and re-serialising the JSON changes it.
Answer quickly
Reply with any 2xx status within 10 seconds, then process the event in the background. Anything else counts as a failure and is retried with growing delays (starting at 30 seconds, doubling each time) for up to 24 hours. Use the id field to ignore duplicates.