SDK and webhooks

Early access

Build 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-inJavaScript SDKWebhooks
What it isOur widget, button or page embedOur script, your interfaceServer-to-server messages
Your designOur design, your coloursFully yoursNot visual
Where it runsYour web pagesWeb pages, web apps, kiosksYour server, or Zapier and Make
Your systems learn about callsIn the browser onlyIn the browserOn your server, even when no page is open
Developer neededNoYesOnly without Zapier
StatusLiveEarly accessEarly access

Getting access

  1. Contact us with what you'd like to build.
  2. We switch the SDK and webhooks on for your team.
  3. 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>
OptionTypeWhat it does
teamstringYour team ID. Calls ring whoever is free.
userstringOne person's ID. Calls ring only them.
refstringOptional label for where calls come from, for example pricing. Shown to your team and sent in webhooks.

Availability

Callbird.isFree() → Promise<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';
}
Callbird.onAvailability(callback)
// Called straight away, then whenever it changes (checked about every 15 seconds).
Callbird.onAvailability(function (a) {
  myButton.disabled = !a.free;
});
FieldTypeMeaning
freebooleanSomeone can take an instant video call right now.
statusstringavailable, busy or away.
textstringA ready-made sentence for visitors, like "Online now" or "Back in about 10 minutes".

Start a call

Callbird.startCall(options) → Promise<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(event, callback)
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();
});
EventWhen
call.requestedThe visitor started a call and your team is being rung.
call.acknowledgedSomeone on your team pressed "Be right there".
call.startedThe visitor joined the video call.
call.endedThe 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

  1. In Add to your website → Developers, add your endpoint (it must be https) and tick the events you want.
  2. Copy your signing secret.
  3. When something happens, we send a POST with a JSON body to your endpoint, signed with your secret.
  4. Answer with any 2xx within 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

EventSent whenExtra fields
call.requestedA visitor starts a callpage, ref, visitor
call.acknowledgedSomeone pressed "Be right there"agent
call.answeredSomeone accepted the callagent, wait_seconds
call.declinedSomeone pressed "Can't take"agent
call.missedNobody answered in timewait_seconds
call.endedAn answered call finishedagent, duration_seconds, reason
testimonial.createdA client recorded a testimonialclient_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
  }
}
  • • id is unique per event. Use it to ignore a repeat.
  • • call is the same in every event for one call, and the same as in the SDK.
  • • visitor.verified is true only 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 2xx within 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 id and created.
  • • 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.

  1. In Zapier, make a new Zap with the trigger Webhooks by Zapier → Catch Hook. (In Make, use Custom webhook.)
  2. Copy the address it gives you.
  3. Paste it as your endpoint in Add to your website → Developers, and press Send test.
  4. 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 https addresses, 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.