SDK and webhooks
Early accessBuild Callbird into your own product. Use your own buttons and your own design, start instant video calls from your own code, and have every call reported straight to your systems: your CRM, ticketing, data warehouse or Zapier.
Early access. The JavaScript SDK and webhooks are switched on for Enterprise teams on request. This page is the interface you'll build against. To get access, contact us. Everything in the developer reference (the button script, status endpoints, call events and verified visitors) is live for everyone today.
Your own buttons
Ask whether anyone is free, show it in your own design, and start a call from any element in your site, app or kiosk.
Webhooks
Our server tells yours the moment a call is requested, answered, ended or missed, with who took it and how long it lasted.
No-code automations
Paste a Zapier or Make address and send every call to Google Sheets, HubSpot, Salesforce or 5,000 other apps.
Known callers
Pass in who a logged-in user is, signed on your server, so your team sees their name and account before answering.
Three ways to use Callbird
Start with whichever fits. They work together, and you can mix them on one site.
| Drop-in | JavaScript SDK | Webhooks | |
|---|---|---|---|
| What it is | Our widget, button or page embed | Our script, your interface | Server-to-server messages |
| Your design | Our design, your colours | Fully yours | Not visual |
| Where it runs | Your web pages | Web pages, web apps, kiosks | Your server, or Zapier and Make |
| Your systems learn about calls | In the browser only | In the browser | On your server, even when no page is open |
| Developer needed | No | Yes | Only without Zapier |
| Status | Live | Early access | Early access |
Getting access
- Contact us with what you'd like to build.
- We switch the SDK and webhooks on for your team.
- A Developers screen appears under Add to your website in your dashboard. It holds your team ID, your secret and your webhook settings.
Install
Add the script once, then point it at a team page or at one person's own page.
<script src="https://www.callbird.com/js/callbird.js"></script>
<script>
Callbird.init({ team: 'YOUR_TEAM_ID' }); // rings whoever on the team is free
// or
Callbird.init({ user: 'USER_ID' }); // rings one person
</script>
| Option | Type | What it does |
|---|---|---|
team | string | Your team ID. Calls ring whoever is free. |
user | string | One person's ID. Calls ring only them. |
ref | string | Optional label for where calls come from, for example pricing. Shown to your team and sent in webhooks. |
Availability
const a = await Callbird.isFree();
// { free: true, status: 'available', text: 'Online now' }
if (a.free) {
myButton.textContent = 'Talk to us now';
} else {
myButton.textContent = 'Book a time';
}
// Called straight away, then whenever it changes (checked about every 15 seconds).
Callbird.onAvailability(function (a) {
myButton.disabled = !a.free;
});
| Field | Type | Meaning |
|---|---|---|
free | boolean | Someone can take an instant video call right now. |
status | string | available, busy or away. |
text | string | A ready-made sentence for visitors, like "Online now" or "Back in about 10 minutes". |
Start a call
myButton.addEventListener('click', async function () {
const call = await Callbird.startCall({
ref: 'pricing',
visitor: signedVisitor, // optional, see "Who is calling"
display: 'overlay' // 'overlay' (default) or 'new-tab'
});
console.log(call.id); // the same id your webhooks will use
});
The visitor allows their microphone and camera, waits a few seconds while your team is rung, and joins the video call. Everything before that point (your button, your page, your copy) is yours.
Call events
Callbird.on('call.started', function (e) {
analytics.track('Live call started', { call: e.call });
});
Callbird.on('call.ended', function (e) {
if (e.reason === 'sorry-page') showBookingForm();
});
| Event | When |
|---|---|
call.requested | The visitor started a call and your team is being rung. |
call.acknowledged | Someone on your team pressed "Be right there". |
call.started | The visitor joined the video call. |
call.ended | The call is over. e.reason says why: caller-left, rep-left, rejected, visitor-left, mic-denied or sorry-page. |
These are the same events our embeds already post to your page
today (callbird-call-requested and so on), with friendlier names.
Who is calling
If your visitor is logged in, sign their details on your server with your secret. Your team then sees their name and account when the call rings. It uses the same signing as verified visitors.
<?php
// on your server
$data = json_encode(['name' => 'Sam Lee', 'email' => '[email protected]',
'account' => 'A-1042', 'timestamp' => time()]);
$signedVisitor = [
'data' => base64_encode($data),
'signature' => hash_hmac('sha256', $data, $callbirdSecret),
];
?>
<script>
Callbird.identify(<?= json_encode($signedVisitor) ?>);
</script>
Signed details older than 5 minutes are refused, so sign them when the page loads.
Close and clean up
Callbird.close(); // closes the call overlay if it's open
Callbird.destroy(); // stops availability checks and removes listeners (for single-page apps)
Full example
A "Talk to an expert" button that only offers a call when someone is free, and falls back to booking.
<button id="talk">Book a time</button>
<script src="https://www.callbird.com/js/callbird.js"></script>
<script>
Callbird.init({ team: 'YOUR_TEAM_ID', ref: 'pricing' });
const btn = document.getElementById('talk');
let free = false;
Callbird.onAvailability(function (a) {
free = a.free;
btn.textContent = free ? 'Talk to an expert now' : 'Book a time';
});
btn.addEventListener('click', function () {
if (free) Callbird.startCall();
else window.location = '/book';
});
Callbird.on('call.ended', function (e) {
if (e.reason === 'sorry-page') window.location = '/book';
});
</script>
How webhooks work
- In Add to your website → Developers, add your endpoint (it must be
https) and tick the events you want. - Copy your signing secret.
- When something happens, we send a
POSTwith a JSON body to your endpoint, signed with your secret. - Answer with any
2xxwithin 5 seconds. Do slow work after you've answered.
Webhooks are sent after your team and the visitor already have their screens, so a slow or offline endpoint never delays a call.
Events
| Event | Sent when | Extra fields |
|---|---|---|
call.requested | A visitor starts a call | page, ref, visitor |
call.acknowledged | Someone pressed "Be right there" | agent |
call.answered | Someone accepted the call | agent, wait_seconds |
call.declined | Someone pressed "Can't take" | agent |
call.missed | Nobody answered in time | wait_seconds |
call.ended | An answered call finished | agent, duration_seconds, reason |
testimonial.created | A client recorded a testimonial | client_name, page |
Payload
POST /your-endpoint
Content-Type: application/json
Callbird-Signature: t=1794432000,v1=5f2c0eā¦
{
"id": "evt_8f3a1c2d9b",
"event": "call.ended",
"created": "2026-11-11T15:04:05Z",
"team": "YOUR_TEAM_ID",
"call": "a1b2c3d4e5f6",
"page": "northline-advisors",
"ref": "pricing",
"agent": { "id": "u_93ab", "name": "Sam" },
"duration_seconds": 372,
"reason": "caller-left",
"visitor": {
"name": "Jordan",
"email": "[email protected]",
"account": "A-1042",
"verified": true
}
}
- •
idis unique per event. Use it to ignore a repeat. - •
callis the same in every event for one call, and the same as in the SDK. - •
visitor.verifiedistrueonly when the details were signed by you.
Verify the signature
Check every request is really from us. Sign the timestamp, a dot and the raw body with your secret, and compare.
PHP
<?php
$body = file_get_contents('php://input');
parse_str(str_replace(',', '&', $_SERVER['HTTP_CALLBIRD_SIGNATURE'] ?? ''), $sig);
$expected = hash_hmac('sha256', $sig['t'] . '.' . $body, getenv('CALLBIRD_WEBHOOK_SECRET'));
if (!hash_equals($expected, $sig['v1'] ?? '') || abs(time() - (int) $sig['t']) > 300) {
http_response_code(401);
exit;
}
$event = json_decode($body, true);
http_response_code(200); // answer first, then do the work
Node.js
const crypto = require('crypto');
app.post('/callbird', express.raw({ type: 'application/json' }), (req, res) => {
const sig = Object.fromEntries(req.get('Callbird-Signature').split(',').map(p => p.split('=')));
const expected = crypto.createHmac('sha256', process.env.CALLBIRD_WEBHOOK_SECRET)
.update(sig.t + '.' + req.body).digest('hex');
if (!crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(sig.v1 || ''))) return res.sendStatus(401);
res.sendStatus(200);
const event = JSON.parse(req.body);
});
Retries and testing
- • If your endpoint doesn't answer
2xxwithin 5 seconds, we try again after about 1 minute, 10 minutes and 1 hour, then stop. - • Events can arrive more than once, and occasionally out of order. Use
idandcreated. - • Send test on the Developers screen sends a sample event straight away.
- • The Developers screen lists your last 50 deliveries and what your endpoint answered.
- • You can regenerate your secret at any time. The old one stops working straight away.
Zapier and Make
No developer needed.
- In Zapier, make a new Zap with the trigger Webhooks by Zapier → Catch Hook. (In Make, use Custom webhook.)
- Copy the address it gives you.
- Paste it as your endpoint in Add to your website → Developers, and press Send test.
- Add your action, for example "Create a row in Google Sheets" or "Create a note in HubSpot".
Ideas
- • Every finished call becomes a row in a Google Sheet: who, when, how long, which page.
- • A missed call creates a follow-up task in your CRM.
- • A new testimonial posts to your marketing channel.
Security
- • Keep your secret on your server. Never put it in browser code.
- • Webhooks only go to
httpsaddresses, and never to private or internal networks. - • Every webhook is signed and timestamped, so it can't be faked or replayed later.
- • Visitor details passed to the SDK are only trusted when you signed them.
- • Only admins of your team can see the secret or change webhook settings.
Questions
Do I have to use the SDK to get webhooks?
No. Webhooks work with any way of using Callbird, including the drop-in widget, button and page embed.
Can I change how the video call itself looks?
The video call screen is ours today. A fully custom video screen, and native iOS and Android, are available for Enterprise deployments. Ask us.
Does it work on kiosks and tablets?
Yes. The SDK runs in any modern browser, including kiosk browsers and in-app web views.
Which plans include it?
Enterprise, during early access.