All guides

Webhooks

A webhook is your server's URL. The engine POSTs it signed events when your sessions end or are judged, and the calls of tools set to go to a webhook. For the walkthrough, see the tutorial.

Creating one

Creating webhooks needs an admin of the workspace; a webhook belongs to it, not to one agent. Settings › Webhooks › New webhook:

  • URL: your endpoint. It must be https and carry no credentials: requests are signed instead.
  • Events: Session completed, Session judged, and the tool calls it should receive: Any tool call, or specific tools by name.
  • Agents: every voice agent of the workspace (the default, which takes agents made later too), or the ones you pick.
  • Kind: production sessions, development sessions, or both (the default). A production session ran a version that was in production when it started; any other session your app starts is a development session.

The signing secret (whsec_…) is shown once, in Copy the signing secret now. Store it next to your API key. If you lose it, delete the webhook and create a new one.

Requests

Every request is a signed JSON POST with these headers:

HeaderValue
X-VE-Eventsession.completed, session.judged or tool.call
X-VE-DeliveryDelivery id (session events only)
X-VE-ToolThe tool's name (tool calls only)
X-VE-TimestampUnix seconds when it was sent
X-VE-Signaturev1= + hex HMAC-SHA256 of "{timestamp}.{raw body}", keyed with the webhook's signing secret

Check the signature on the raw body before you parse it, and reject timestamps more than 5 minutes old:

import { createHmac, timingSafeEqual } from 'node:crypto';

export function isFromVoiceEngine(rawBody: string, timestamp: string, signature: string, secret: string): boolean {
  const ts = Number(timestamp);
  if (!Number.isInteger(ts) || Math.abs(Date.now() / 1000 - ts) > 300) return false;
  const expected = Buffer.from(`v1=${createHmac('sha256', secret).update(`${ts}.${rawBody}`).digest('hex')}`);
  const given = Buffer.from(signature);
  return given.length === expected.length && timingSafeEqual(given, expected);
}

Session events

session.completed and session.judged are sent only for sessions your API key started, to every webhook that subscribes to them and whose Agents and Kind take the session:

{
  "id": "b7e2…",
  "event": "session.completed",
  "created_at": "2026-10-14T09:31:12.000Z",
  "session": {
    "id": "6f1c…",
    "agent": "ai-interviewer",
    "version": "ver_7k2p9x4m",
    "production": true,
    "client_ref": { "user_id": "u_123", "study_id": "s_456" },
    "status": "ended",
    "end_reason": "agent_ended"
  }
}
  • session.completed: the session ended, however it ended, including sessions the browser never connected (end_reason: "expired"). Then read the session.
  • session.judged: the agent's judge reviewed the session. Read the review with include=reviews. Every session your server starts is judged as it ends, once the agent's reviews are set up. See Judges.

version is the ID of the version the session ran, and production whether it was a production session.

Answer with any 2xx within 10 seconds and do the work afterwards. Anything else is retried with backoff (30 s, 1 min, 2 min … up to 1 h apart, 12 attempts, about 5 hours in all). Deliveries are at least once: use id (also in X-VE-Delivery) to skip duplicates.

Seeing what was sent

A session's page in Cullman › Webhooks lists each notice sent about it: the event, the webhook, its status (Delivered, Trying while retries go on, Failed once they stop), the tries, the last answer (HTTP 200, or the error of the last failed try) and when it was delivered or is tried next. The Cullman MCP's list_session_webhook_deliveries returns the same. Tool calls sent to a webhook are on the session's Tool calls tab instead, each with its request.

Tool calls

An agent can also call your API directly, with no webhook in between: see Tools.

A tool set to go to a Webhook reaches the one webhook that receives that tool for the session's agent and kind (production or development). Two webhooks can't both receive the same tool for the same agent and kind: saving the second is refused, naming the webhook that already receives it (409 tool_taken). Test sessions call your webhook only for a tool set to its real call (Call it for real in a live test, Real call in a tester link's or scenario's Tool answers), and count as development sessions for it; they never send session notices. Otherwise whoever makes a live test answers each tool call on the call's page, where it shows in the transcript, and tester links and simulations answer each tool call from their Tool answers: the same answer every call, one made up by AI, or a failure. X-VE-Event is tool.call:

{
  "session_id": "6f1c…",
  "call_id": "call_abc",
  "tool": "lookup_order",
  "args": { "order_id": "A-1001" },
  "client_ref": { "user_id": "u_123" }
}
  • When the tool waits for an answer, reply with a 2xx and the result as JSON (or plain text, up to 16 KB) within the tool's timeout (8 s by default, at most 60 s, retries included). The agent hears that result. A non-2xx answer, a timeout, or no webhook for the tool reads as "unavailable" to the agent.
  • When it doesn't wait, any 2xx will do, within 8 s. It isn't retried.
  • When it waits, network errors, 429 and 5xx are retried if the tool allows retries, with the same call_id: handle a repeated call_id once.

Limits

URLhttps only, no credentials in it.
ToolsOne webhook per tool for each agent and kind of session.
Tool answers16 KB at most.