Help Center / Integrations & API

Callingly API Webhooks (v2)

On this page

Webhooks send events from Callingly to your own URL as they happen: a new lead, a finished AI call, a lead put through to your team, a text from a lead. Your system gets each one within seconds, so it doesn't have to keep asking the API what changed.

supervisor_account For developers using the Callingly API (v2). Approx. reading time 5 min.

info_outline
Note: This article is about webhooks from Callingly. To send leads into Callingly from another app, see Integrate Callingly Using A Webhook.

Events

EventSent when
lead.createdA lead is added, from any source.
lead.updatedA lead's details change: contact details, stage, owner, tags or a custom field. changes lists what changed.
call.completedAn AI call ends and its summary and recording are ready.
warm_transfer.connectedA rep picks up a lead your AI is putting through, while they're still talking.
warm_transfer.completedThat conversation ends, or the transfer failed because no rep answered or the lead hung up first.
scheduled_call.createdA call with a lead is booked, by the AI, a rep or the API.
scheduled_sms.createdA text to a lead is scheduled.
sms.receivedA lead texts you.
sms.sentA text goes to a lead, from the AI, a rep, a sequence or the API.

Subscribe

Send the URL and the events you want to POST /v2/webhooks:

curl https://api.callingly.com/v2/webhooks \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/callingly", "events": ["call.completed", "warm_transfer.connected"]}'

The response includes a secret, used to sign every event. It's shown only this once, so store it with your integration.

The URL must use https and be reachable from the internet. An account can have up to 100 subscriptions. GET /v2/webhooks lists your subscriptions and DELETE /v2/webhooks/{id} removes one. Each subscription belongs to the API key (or connected app) that created it, and only that key can see or remove it.

Only the events you need

Add filters to narrow what's sent:

  • team_id: only one team's events.
  • direction: inbound or outbound calls and texts.
  • outcome: for call.completed, only some outcomes, such as ["warm_transfer", "scheduled_call"].
  • fields: for lead.updated, only when one of these fields changed, such as ["stage", "owner"].
  • status and failure_reason: for warm_transfer.completed, such as {"status": ["failed"]} to hear only about missed transfers.

What You Receive

Each event is a POST to your URL:

{
  "id": "evt_01jq3v7kz8m2x4n6p9r1s5t0w3",
  "type": "lead.updated",
  "created_at": "2026-11-17T15:04:05Z",
  "data": {
    "id": "48213377",
    "first_name": "Jane",
    "stage": "Qualified",
    ...
    "changes": [{"field": "stage", "from": "New", "to": "Qualified"}]
  }
}

data is the same as the API returns for that record. Events about a call, transfer, booking or text also include the lead. A call's transcript is included only if your key can read transcripts.

Check The Signature

Every request has an X-Signature header like t=1763391845,v1=5f2b…. To check it came from Callingly:

1.
Take t and the raw request body, and join them with a dot: t.body.
2.
Compute the HMAC-SHA256 of that string with your secret, as hex.
3.
Compare it with v1, and reject the request if they differ or if t is more than 5 minutes old.

In Node.js:

const crypto = require('crypto');

function isFromCallingly(rawBody, header, secret) {
  const match = /^t=(\d+),v1=([0-9a-f]{64})$/.exec(header || '');
  if (!match) return false;
  const [, t, v1] = match;
  if (Math.abs(Date.now() / 1000 - Number(t)) > 300) return false;
  const expected = crypto.createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex');
  return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1));
}

Answer Quickly; We Retry

Reply with any 2xx status as soon as you've received the event, and do slow work afterwards. If your URL doesn't answer with a 2xx, Callingly tries again after 1, 5, 15 and 30 minutes, after an hour, then every 2 hours, for up to 24 hours. A retry has the same id, so you can skip events you've already handled.

Reply 410 Gone to stop for good: the subscription is deleted.

Common Questions

My subscription disappeared. Why?

Subscriptions are deleted when your URL answers 410, when the API key that made them is deleted, or when the connected app that made them is disconnected from Connected Apps.

Why didn't I get an event for a lead?

Events only include what the key's user can see. A key made by an Agent or Manager who can't see a lead gets no events about it. Check your filters too.

Do these replace the webhooks in Settings → Webhooks?

Those keep working as they do. Use these for new integrations: they're signed, retried, and cover AI calls, warm transfers and texts.

Was this article helpful?

Still need help?

Send us a message and our support team will get back to you.

Contact support

View as Markdown