Webhooks

Send Bipli events to your own systems.

When a call finishes, a text arrives or a lead comes in, Bipli sends a signed message to the web addresses you choose. Use it to push the details into your database, a spreadsheet, a chat channel or anything that can receive a web request.

The events

  • call.completed — a call finished (answered, missed or voicemail). Sent once the call summary is ready, so it carries the notes and triage.
  • message.received — an inbound SMS or WhatsApp message arrived.
  • lead.created — a new lead came in through your lead webhook or form.
  • callback.completed — an AI outbound callback reached its final result (connected, voicemail, no answer, or skipped). Sent once, so you learn the outcome even when the lead was never reached. A connected callback sends both call.completed (the call detail) and callback.completed (the outcome).

Every event looks the same on the wire. The data part changes per event.

POST https://your-system.example.com/bipli-webhook
Content-Type: application/json
User-Agent: Bipli-Webhooks/1.0 (+https://bipli.com)
X-Bipli-Event: call.completed
X-Bipli-Delivery: 4e7c…           # unique per delivery
X-Bipli-Webhook-Id: 9a1f…         # your endpoint's id
X-Bipli-Timestamp: 1763000000     # unix seconds
X-Bipli-Signature: sha256=…       # see "Verify it's from Bipli"

{
  "id": "4e7c…",                   // the delivery id
  "event": "call.completed",
  "created": "2026-11-13T04:10:00.000Z",
  "tenant": "your-workspace",      // your workspace slug
  "data": { … }                    // the event payload, below
}

Payloads

call.completed

{
  "callId": "…",
  "direction": "inbound",          // or "outbound"
  "status": "completed",
  "from": "+61412345678",
  "to": "+61480000000",
  "line": "+61480000000",          // your Bipli number the call was on
  "startedAt": "2026-11-13T04:08:10.000Z",
  "answeredAt": "2026-11-13T04:08:14.000Z",
  "endedAt": "2026-11-13T04:10:00.000Z",
  "durationSeconds": 106,          // talk time; null for a missed call
  "answered": true,
  "voicemail": false,
  "missed": false,
  "phoneVerified": true,           // a live party answered on the other number (answered && not voicemail)
  "handledBy": "Jordan",
  "contact": {                     // the Bipli contact for the other party
    "id": "…",                     // null when unknown
    "name": "Sam Taylor",          // null when unknown
    "matched": true                // false = unknown caller, no named contact
  },
  "lead": {                        // present when the call is linked to a lead or callback; else null
    "id": "…",                     // the Bipli contact id
    "external_id": "wf-00417",     // your id, echoed from the lead webhook (null if none sent)
    "source": "Website form"
  },
  "callback": {                    // present only on an AI outbound-callback call; else null
    "id": "…",                     // the callback id
    "attempt": 1,                  // which dial connected
    "outcome": "connected"         // connected | voicemail | no_answer
  },
  "link": "https://bipli.com/c/aB3dEf",   // open the call in Bipli
  "recordingAvailable": true,
  "notes": { "summary": "Customer asked to reschedule Tuesday's job…" },
  "triage": {
    "sentiment": "positive",
    "urgency": "low",
    "topics": [ … ],
    "actionItems": [ … ],
    "callbackRequested": false,
    "ownerBrief": { … }
  }
}

message.received

{
  "messageId": "…",
  "channel": "sms",                // or "whatsapp"
  "from": "+61412345678",
  "to": "+61480000000",            // your Bipli number
  "body": "Are you open Saturday?",
  "mediaCount": 0,
  "receivedAt": "2026-11-13T04:12:00.000Z",
  "link": "https://bipli.com/c/aB3dEf"    // open the conversation in Bipli
}

lead.created

{
  "contactId": "…",
  "name": "Sam Taylor",
  "business": "Taylor Plumbing",
  "email": "sam@example.com",
  "phone": "+61412345678",
  "source": "Website form",
  "external_id": "wf-00417",       // your id, echoed from the lead webhook (null if none sent)
  "stage": "New Lead",
  "createdAt": "2026-11-13T04:15:00.000Z",
  "link": "https://bipli.com/contacts/…"  // open the contact in Bipli
}

callback.completed

{
  "callback": {
    "id": "cb_55de…",
    "attempts": 2,                 // dials actually made
    "outcome": "no_answer",        // connected | voicemail | no_answer | skipped
    "reason": null,                // set when outcome is "skipped" (e.g. do_not_autocall,
                                   //   request_expired, no_consent); null otherwise
    "requestedAt": "2026-11-19T03:30:05.000Z",
    "completedAt": "2026-11-19T03:52:00.000Z"
  },
  "lead": {                        // echoes your id; null if the contact has no lead row
    "id": "c_9f2a…",
    "external_id": "wf-20261119-00417",
    "source": "Website form"
  },
  "contact": { "id": "c_9f2a…", "name": "Jordan Lee", "matched": true },
  "callId": null                   // the Bipli call id when a call happened (connected); else null
}

Verify it's from Bipli

Each endpoint has a signing secret, shown once when you create it. Bipli signs every message with it. Check the signature so you only trust messages Bipli actually sent, and check the timestamp so an old message can't be replayed.

// Node.js — reject anything that isn't genuinely from Bipli.
import crypto from "node:crypto";

function verify(req, rawBody, secret) {
  const ts = req.headers["x-bipli-timestamp"];
  const sig = req.headers["x-bipli-signature"];

  // 1. Recompute the signature over `${timestamp}.${rawBody}`.
  const expected =
    "sha256=" +
    crypto.createHmac("sha256", secret).update(`${ts}.${rawBody}`).digest("hex");

  // 2. Constant-time compare.
  const ok =
    sig &&
    sig.length === expected.length &&
    crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected));

  // 3. Reject an old timestamp (replay). 5 minutes is a sensible window.
  const fresh = Math.abs(Date.now() / 1000 - Number(ts)) < 300;

  return ok && fresh;
}

Retries

Reply with any 2xx status and Bipli marks the delivery done. Anything else (or no reply) is a failure, and Bipli tries again with a growing gap — about a minute, then two, then four, and so on, up to two hours between tries, for about a day. Make your handler safe to call more than once with the same id: a retry can arrive after your first reply was lost.

Set one up

  1. 1. In Bipli, open Settings, Integrations, Webhooks.
  2. 2. Add an endpoint: paste your https URL and tick the events you want.
  3. 3. Copy the signing secret (shown once) into your system.
  4. 4. Press Test send to check it arrives, and watch the delivery log.

Back to integrations