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.
For developers using the Callingly API (v2). Approx. reading time 5 min.
Events
| Event | Sent when |
|---|---|
lead.created | A lead is added, from any source. |
lead.updated | A lead's details change: contact details, stage, owner, tags or a custom field. changes lists what changed. |
call.completed | An AI call ends and its summary and recording are ready. |
warm_transfer.connected | A rep picks up a lead your AI is putting through, while they're still talking. |
warm_transfer.completed | That conversation ends, or the transfer failed because no rep answered or the lead hung up first. |
scheduled_call.created | A call with a lead is booked, by the AI, a rep or the API. |
scheduled_sms.created | A text to a lead is scheduled. |
sms.received | A lead texts you. |
sms.sent | A 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:inboundoroutboundcalls and texts.outcome: forcall.completed, only some outcomes, such as["warm_transfer", "scheduled_call"].fields: forlead.updated, only when one of these fields changed, such as["stage", "owner"].statusandfailure_reason: forwarm_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
tand 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 iftis 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.
More in Integrations & API
Was this article helpful?
Thanks for letting us know.
Thanks. Tell us what was missing below and we'll fix the article.
Still need help?
Send us a message and our support team will get back to you.