# Webhooks: events, signatures and retries

> Every event a Ladoo webhook endpoint can subscribe to, with a sample payload for each, plus how to check signatures, how retries work and how to handle each event once.

Source: https://tryladoo.com/docs/developers/webhook-events · Updated 2026-11-21

A webhook endpoint is an https address of yours that Ladoo calls when something happens: a call ends, an appointment is booked, a caller is added to People. Use it to post bookings to Slack, open a ticket for an urgent call, or update your own CRM.

Each endpoint picks the events it wants. Ladoo sends each event once per change, signs it, and retries for about an hour if your address doesn't answer with a 2xx.

## What every event looks like

Every event is a JSON `POST` in the same envelope:

```json
{
  "id": "5b0e3a4c-9d2f-8c1e-a7b4-2f6d8e1c0a93",
  "type": "booking.created",
  "created_at": "2026-11-18T15:04:05.000Z",
  "workspace_id": "0f8f6d0e-2b1a-4c3d-9e8f-7a6b5c4d3e2f",
  "tenant_id": "0f8f6d0e-2b1a-4c3d-9e8f-7a6b5c4d3e2f",
  "api_version": "2026-11-16",
  "data": { "booking": { "id": "…" } }
}
```

- `id` is the same if Ladoo sends the same event again, so you can skip one you've already handled.
- `type` is one of the events below.
- `api_version` is the [API version](https://tryladoo.com/docs/developers/versions-and-limits) the payload follows.
- `workspace_id` is the workspace it happened in. `tenant_id` holds the same value, for endpoints set up before `workspace_id` existed.
- `data` holds what the event is about, in the same shape the Ladoo API returns it: a call, a booking, a person, a knowledge source or a phone number.

The headers include `Ladoo-Event-Id`, `Ladoo-Event-Type`, `Ladoo-Signature` and `User-Agent: Ladoo-Webhooks/1.0`.

Events carry callers' names, numbers and what they said, so Ladoo only sends them to https addresses on port 443, and never to private or local network addresses. Test calls never send events.

## Check the signature

`Ladoo-Signature` looks like `t=1763478245,v1=5d41402abc…`. `t` is when the delivery was signed, in Unix seconds, and `v1` is HMAC-SHA256 of `<t>.<raw body>` with your endpoint's signing secret, as hex. To check an event:

1. Read the raw request body as bytes, before any JSON parsing. Parsing and re-encoding changes the bytes, and the signature with them.
2. Compute the HMAC with your secret and compare it with each `v1` in the header, using a constant-time comparison.
3. Refuse the event if `t` is more than 5 minutes from your server's clock. That stops someone replaying an old delivery.

The [API quickstart](https://tryladoo.com/docs/developers/quickstart#4-check-the-signature) has the code in Node and Python.

The signing secret is shown once, when you create the endpoint. To change it, send `POST /v1/webhook-endpoints/{id}/rotate-secret`, or rotate it under **Settings → Developers**. For the next 24 hours each delivery is signed with both the new and the old secret, so it has two `v1` values. Accept either while you switch your server over.

## Retries and failures

Answer with any 2xx status within 10 seconds. Anything else counts as a failure: another status, a timeout, a refused connection or a redirect (Ladoo doesn't follow them).

- After a failure, Ladoo tries again after about 30 seconds, then 1, 2, 4, 8, 16 and 32 minutes, each give or take 20%. That's 8 tries over about an hour. After the last one the delivery is marked failed.
- If an endpoint's deliveries keep failing for 3 days with no success, Ladoo pauses the endpoint and emails the workspace's owners. A paused endpoint keeps its events waiting. Open the endpoint under **Settings → Developers** and click **Resume**, or send `PATCH /v1/webhook-endpoints/{id}` with `{ "enabled": true }`.
- `GET /v1/webhook-endpoints/{id}/deliveries` lists recent deliveries with each one's status, attempts, your server's status code and the start of its reply. Deliveries are kept for 30 days.
- To send one again, use **Redeliver** in Ladoo or `POST /v1/webhook-deliveries/{id}/redeliver`. It's the same event, with the same `id`, and a fresh set of retries.

Do slow work, like writing to another system, after you've answered, so a slow step doesn't turn into a timeout and a retry.

## Handle each event once

Retries and redeliveries mean your server can get the same event more than once. Events can also arrive out of order: a retried `call.started` can land after `call.completed`.

- Use the event's `id` (also in the `Ladoo-Event-Id` header) to skip one you've already handled. Store the ids you've processed, for at least a day.
- When order matters, compare timestamps in `data`, like a call's `ended_at`, rather than the order events arrived in.
- When you need the latest state, fetch it: `GET /v1/calls/{id}` returns the call as it is now.

## Call events

| Event                 | When it's sent                                                           |
| --------------------- | ------------------------------------------------------------------------ |
| `call.started`        | A live call or chat starts.                                              |
| `call.completed`      | A live call or chat ends.                                                |
| `call.analyzed`       | The call's summary, outcome and review are ready, shortly after it ends. |
| `call.flagged_urgent` | The agent escalated the call as urgent. Sent when the call ends.         |
| `call.transferred`    | The call was transferred to a person. Sent when the call ends.           |
| `message.taken`       | The agent took a message. Sent when the call ends.                       |

Each sends `data.call`, the call as the API's `GET /v1/calls/{id}` returns it, transcript included:

```json
{
  "call": {
    "id": "c2a1e9b8-4f3d-4a2c-9b1e-8d7c6b5a4f3e",
    "kind": "live",
    "channel": "phone",
    "status": "completed",
    "from_number": "+15555550100",
    "to_number": "+15555550001",
    "started_at": "2026-11-18T15:00:00.000Z",
    "ended_at": "2026-11-18T15:02:22.000Z",
    "duration_seconds": 142,
    "end_reason": "caller_hangup",
    "summary": "Caller reported a leaking water heater; message taken.",
    "outcome": {
      "type": "message_taken",
      "crm_ref": null,
      "details": {},
      "reached": ["message_taken", "urgent_escalated"]
    },
    "extracted": { "caller_name": "Jordan Rivera", "reason": "Leaking water heater" },
    "urgency": "high",
    "transcript": [
      { "role": "agent", "text": "Thanks for calling.", "start_ms": 0, "end_ms": 1800 },
      { "role": "caller", "text": "My water heater is leaking.", "start_ms": 2000, "end_ms": 4200 }
    ]
  }
}
```

The sample leaves out some fields. A call that reached several outcomes sends one event for each: the call above sends `message.taken` and `call.flagged_urgent`.

`data.call.analysis` holds the values your agent's [call analysis fields](https://tryladoo.com/docs/developers/changelog) read from the call, by field name, with `null` for one the call didn't give; it's `null` when the agent has no fields.

`call.started` sends the call so far, with `status: "in_progress"`. `call.analyzed` adds `data.judgment`, the call checked against your agent's success criteria:

```json
{
  "call": { "id": "c2a1e9b8-4f3d-4a2c-9b1e-8d7c6b5a4f3e", "summary": "…" },
  "judgment": {
    "status": "judged",
    "outcome": "passed",
    "results": [
      {
        "criterion": "Took a full message",
        "verdict": "pass",
        "reason": "Took name, number and the leak details."
      }
    ],
    "csat": 4,
    "csat_reason": "Caller said thanks and knew what happens next.",
    "judged_at": "2026-11-18T15:03:10.000Z"
  }
}
```

`judgment` is `null` for calls that aren't reviewed: chats, spam, blocked callers and calls with no conversation. When your plan's review allowance is used up, `status` is `skipped`.

## Booking events

| Event                 | When it's sent                                                       |
| --------------------- | -------------------------------------------------------------------- |
| `booking.created`     | The agent booked an appointment.                                     |
| `booking.rescheduled` | A caller moved their appointment to a new time.                      |
| `booking.cancelled`   | An appointment was cancelled, by a caller or from the Calendar page. |

Each sends `data.booking`, the appointment as the [Calendar](https://tryladoo.com/docs/calls/calendar) shows it:

```json
{
  "booking": {
    "id": "a7d3c1e2-6b5f-4e8d-9c0a-1b2c3d4e5f60",
    "start": "2026-11-23T16:00:00.000Z",
    "end": "2026-11-23T17:00:00.000Z",
    "title": "Jordan Rivera: Leak",
    "caller_name": "Jordan Rivera",
    "call_id": "c2a1e9b8-4f3d-4a2c-9b1e-8d7c6b5a4f3e",
    "calendars": ["Google Calendar", "CRM"],
    "reason": "Leak",
    "status": "booked",
    "events": [
      { "label": "Google Calendar", "provider": "google", "state": "booked", "error": null }
    ],
    "cancelled_at": null
  }
}
```

A move books the new time and then cancels the old one, so it sends one `booking.rescheduled` and no `booking.cancelled`. `data.booking` is the new appointment, and `data.previous_booking_id` is the one it replaced.

A cancel that couldn't remove the appointment from every calendar still sends `booking.cancelled`, with `status: "cancel_failed"`. Retrying the cancel doesn't send it again.

## People events

| Event            | When it's sent                                                                |
| ---------------- | ----------------------------------------------------------------------------- |
| `person.created` | A new caller was added to [People](https://tryladoo.com/docs/calls/people) after their call or chat. |
| `person.updated` | Someone on your team changed a person's details, or merged two people.        |

```json
{
  "person": {
    "id": "e1f2a3b4-c5d6-4e7f-8a9b-0c1d2e3f4a5b",
    "name": "Jordan Rivera",
    "phone": "+15555550100",
    "email": null,
    "first_contact_at": "2026-11-18T15:00:00.000Z",
    "last_contact_at": "2026-11-18T15:00:00.000Z"
  }
}
```

When you delete a person, Ladoo also deletes the stored events about them and their calls.

## Workspace events

| Event                     | When it's sent                                            |
| ------------------------- | --------------------------------------------------------- |
| `knowledge.source_failed` | A knowledge source couldn't be indexed. `error` says why. |
| `number.purchased`        | A phone number was bought for the workspace.              |
| `number.released`         | A phone number was released from the workspace.           |

```json
{
  "source": {
    "id": "b3c4d5e6-f7a8-4b9c-8d0e-1f2a3b4c5d6e",
    "knowledge_base_id": "c4d5e6f7-a8b9-4c0d-9e1f-2a3b4c5d6e7f",
    "kind": "url",
    "name": "Pricing page",
    "status": "failed",
    "error": "The page answered with HTTP 403.",
    "failures": [{ "uri": "https://www.example.com/pricing", "reason": "403" }]
  }
}
```

```json
{
  "phone_number": {
    "id": "d5e6f7a8-b9c0-4d1e-8f2a-3b4c5d6e7f80",
    "e164": "+15555550142",
    "carrier": "telnyx",
    "status": "active",
    "type": "local",
    "locality": "Springfield",
    "monthly_price_cents": 200,
    "created_at": "2026-11-18T15:00:00.000Z"
  }
}
```

`number.released` sends the same, with `status: "released"`.

## Set up an endpoint

Add an endpoint under **Settings → Developers**, or create one with `POST /v1/webhook-endpoints`, giving the https address and the events it wants. `GET /v1/webhook-event-types` lists every event type with a short description. The signing secret is shown once, when the endpoint is created. A workspace can have up to 100 endpoints, so automation tools like Zapier can create one for each Zap; one more is refused with `409 endpoint_limit`.

To try an endpoint without a real call, send `POST /v1/webhook-endpoints/{id}/test` with `{ "type": "booking.created" }`, or click **Send test event**. It sends sample data, signed like any other event, even while the endpoint is paused. Up to 5 test events a minute per endpoint.
