Skip to content
SisBird
DID Numbers

Customer guide · Developers

Webhooks

Events, payload, signature check and retries.

Open the customer portal

Webhooks 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.
EventSent when
call.startedA call to one of your numbers starts
call.endedA call ends
number.activatedA number becomes active
number.suspendedA number is suspended
wallet.low_balanceYour available balance drops below your low-balance alert
deposit.approvedA deposit is credited
sms.receivedAn 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> where v1 is the HMAC-SHA256 of "<t>.<raw body>" with your signing secret.

Verify the signature

  1. Split X-Signature into t and v1.
  2. Reject the request if t is more than 300 seconds away from your clock.
  3. Compute HMAC-SHA256 over the string t + "." + rawBody with your secret and compare it with v1 using 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.