# Webhooks Webhooks send an HTTP request to your system when something happens on a call. Add them under **Webhooks**. ## Events | Event | When | | --- | --- | | `call.completed` | An answered call has ended. | | `call.unanswered` | A call was not answered, was busy, or failed. | | `call.analyzed` | The AI analysis is ready (summary, intent, lead score). | | `intent.detected` | A built-in or custom intent was detected on a call. | ## Payload ```json { "event": "call.analyzed", "createdAt": "2026-11-03T10:15:00.000Z", "call": { "id": 1001, "externalRef": "ORDER-5521", "direction": "OUTBOUND", "status": "COMPLETED", "variables": { "order_id": "5521" }, "durationSec": 84, "talkTimeSec": 80, "endReason": "agent_ended" }, "contact": { "id": 7, "name": "Asha Verma", "phone": "+919876543210", "email": null, "company": null, "leadStatus": "INTERESTED", "customFields": {} }, "agent": { "id": 3, "name": "Order assistant" }, "analysis": { "summary": "Asha confirmed an order for two items.", "intent": "INTERESTED", "sentiment": "POSITIVE", "leadScore": 90, "keyPoints": [], "objections": [], "nextAction": "Dispatch the order", "callbackTime": null }, "intent": { "key": "ORDER_PLACED", "label": "Order placed", "custom": true, "data": { "items": "2 x Masala tea 250g" }, "missingFields": [] }, "toolCalls": [] } ``` Built-in intents: `INTERESTED`, `NOT_INTERESTED`, `CALLBACK`, `NEEDS_INFO`, `DO_NOT_CALL`. Define your own intents (with the fields to capture) under **Integrations**. ## Headers and signature Each request carries `X-Webhook-Event`, `X-Webhook-Delivery` (a unique id; use it to ignore repeats) and, when the webhook has a secret, `X-Webhook-Signature: t=,v1=`. `v1` is the HMAC-SHA256 of `.` with your secret: ```js import crypto from 'node:crypto'; function verify(secret, header, rawBody) { const { t, v1 } = Object.fromEntries(header.split(',').map((p) => p.split('='))); const expected = crypto.createHmac('sha256', secret).update(`${t}.${rawBody}`).digest('hex'); return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1)); } ``` ## Retries Answer with a 2xx status within 10 seconds. Failed deliveries are retried after 30 seconds, 2 minutes, 10 minutes, 30 minutes and 2 hours.