Outbound API

Status Webhooks

HMAC-signed lifecycle events delivered to your URL. At-least-once delivery with exponential backoff.

Overview

If you set statusWebhookUrl when originating a call, we POST one of three lifecycle events to that URL: call.answered,call.completed, or call.failed.

Each delivery is signed with yourAPI secret — the same secret you use to sign outbound requests. Verify the signature before trusting the payload.

Status webhooks vs. conversational webhook
This page documents statuswebhooks — one-way lifecycle notifications you subscribe to via statusWebhookUrl. The Conversational Webhook is different: it's the URL we hit during the call itself to run your AI agent, and it expects a JSON response (including the new hangup field).

Events

call.answered

Fired when the called party picks up.

JSON
{
  "event":     "call.answered",
  "callId":    "cn-ob-7f3a...",
  "timestamp": "2026-05-24T17:31:14.105Z",
  "metadata":  { "leadId": "lead_abc123" }
}

call.completed

Fired when the call ends normally.

JSON
{
  "event":         "call.completed",
  "callId":        "cn-ob-7f3a...",
  "timestamp":     "2026-05-24T17:32:48.992Z",
  "durationSecs":  94,
  "costUsd":       "0.04",
  "metadata":      { "leadId": "lead_abc123" }
}

call.failed

Fired when the call does not complete. See the failureCode reference on the Errors page.

JSON
{
  "event":       "call.failed",
  "callId":      "cn-ob-7f3a...",
  "timestamp":   "2026-05-24T17:31:11.500Z",
  "failureCode": "no_answer",
  "metadata":    { "leadId": "lead_abc123" }
}

Request headers we send

HeaderValue / Purpose
Content-Typeapplication/json
X-TimestampUnix seconds at delivery time; every retry is signed afresh with its own timestamp, so a ±300 s freshness check passes on retries too. Use this when verifying.
X-Signaturehex-encoded HMAC-SHA256(yourSecret, ts + "\n" + body).
X-Event-SourceAlways callnode-outbound. Use to disambiguate from other webhook sources sharing the URL.

Verify the signature

verifyWebhook.jsJavaScript
const expected = crypto
  .createHmac('sha256', apiSecret)
  .update(req.headers['x-timestamp'] + '\n' + rawBody)
  .digest('hex');

if (!crypto.timingSafeEqual(
  Buffer.from(expected),
  Buffer.from(req.headers['x-signature'])
)) {
  return res.status(401).end();
}
Use the raw body
Compute the signature over the exact bytes we sent — not over your framework's parsed JSON re-stringified. In Express, capture the raw body via express.json({ verify })before the body is parsed.

Delivery semantics

We deliver each event at least once. Your handler must be idempotent — key on callId + event and skip duplicates.

Retries

If your endpoint returns a non-2xx status (or times out after 15 seconds), we retry with exponential backoff:

AttemptDelayCumulative time
1immediate0s
2+5 seconds5s
3+30 seconds35s
4+5 minutes~5 min
5+30 minutes~35 min
6+2 hours~2.5 hours
7+6 hours~8.5 hours, then dropped

Per-URL rate cap

We cap delivery to any single statusWebhookUrl at 10 events/second. Excess deliveries queue and stream at the cap.