Receive and verify Retell AI webhooks with HMAC-SHA256 signature verification. Handles voice call events like call_started, call_ended, call_analyzed, and transcript_updated.
Ships in webhook-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
X-Retell-Signature)?call_ended or call_analyzed events?Retell signs each webhook with HMAC-SHA256 using your Retell API key as
the secret (only an API key with the webhook badge in the dashboard works). The
signature arrives in the X-Retell-Signature header formatted as
v={unix_ms_timestamp},d={hex_digest}, where the digest is computed over the
raw request body concatenated with the timestamp. Always verify against the
raw body, never a re-serialized JSON string.
The Python SDK ships a verify helper (client.verify(body, api_key, signature) —
positional params, so the keyword form used in the FastAPI example also works).
The Node SDK has no verify helper, so Node handlers verify manually.
Verified against
retell-sdk5.56.0 (PyPI) and 5.46.0 (npm): the Python package exposesretell.lib.webhook_auth.verify, re-exported asclient.verify; the npm package has no webhook/verify export. Check your installed version — the helper's presence and argument order have moved between releases.
const crypto = require('crypto');
// Reject signatures older than 5 minutes to prevent replay attacks
const FIVE_MINUTES_MS = 5 * 60 * 1000;
function verifyRetellSignature(rawBody, signatureHeader, apiKey) {
const match = /^v=(\d+),d=(.*)$/.exec(signatureHeader || '');
if (!match) return false;
const [, timestamp, digest] = match;
if (Math.abs(Date.now() - Number(timestamp)) > FIVE_MINUTES_MS) return false;
const expected = crypto
.createHmac('sha256', apiKey)
.update(rawBody + timestamp) // raw body + timestamp, in that order
.digest('hex');
try {
return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(digest));
} catch {
return false; // length mismatch = invalid
}
}
Python (FastAPI) uses the official SDK instead:
from retell import Retell
client = Retell(api_key=os.environ["RETELL_API_KEY"])
# client.verify enforces the ~5 min timestamp window and returns a bool
is_valid = client.verify(raw_body.decode("utf-8"),
api_key=os.environ["RETELL_API_KEY"],
signature=signature_header)
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
| Event | Triggered When | Common Use Cases |
|---|---|---|
call_started | A call begins | Track live calls, update dashboards |
call_ended | A call finishes (audio done) | Persist call record, trigger follow-ups |
call_analyzed | Post-call analysis completes | Store transcript, sentiment, summary |
transcript_updated | Transcript changes mid-call | Live captions, real-time monitoring |
transfer_started | An agent transfer begins | Log routing, notify agents |
transfer_bridged | Transfer connected | Update call state |
transfer_cancelled | Transfer cancelled | Revert routing state |
transfer_ended | Transfer completed | Reconcile call legs |
chat_started | A chat session begins | Track chat sessions |
chat_ended | A chat session ends | Persist chat record |
chat_analyzed | Post-chat analysis completes | Store chat summary, sentiment |
Payloads carry an event field plus a call object (voice/transfer events) or a
chat object (chat events). Dedupe on event + call.call_id (or chat.chat_id) —
Retell retries up to 3 times if it doesn't get a 2xx within 10 seconds.
See references/overview.md for full payload structure.
# The Retell API key (must have the webhook badge). Used as the HMAC secret.
RETELL_API_KEY=key_xxxxxxxxxxxxxxxxxxxxxxxx
PORT=3000
For local webhook testing, run the Hookdeck CLI via npx — no install required:
npx hookdeck-cli listen 3000 retell --path /webhooks/retell
No account required — the CLI creates a guest account on first run and provides a local tunnel + web UI for inspecting requests.
We recommend installing the webhook-handler-patterns skill alongside this one for handler sequence, idempotency, error handling, and retry logic. Key references (open on GitHub):
event + call_idexamples/express/README.md (opens in a new tab)examples/express/package.json (opens in a new tab)examples/express/src/index.js (opens in a new tab)examples/express/test/webhook.test.js (opens in a new tab)examples/fastapi/README.md (opens in a new tab)examples/fastapi/main.py (opens in a new tab)examples/fastapi/requirements.txt (opens in a new tab)examples/fastapi/test_webhook.py (opens in a new tab)examples/nextjs/README.md (opens in a new tab)examples/nextjs/app/api/health/route.ts (opens in a new tab)examples/nextjs/app/webhooks/retell/route.ts (opens in a new tab)examples/nextjs/package.json (opens in a new tab)examples/nextjs/test/webhook.test.ts (opens in a new tab)examples/nextjs/vitest.config.ts (opens in a new tab)references/overview.md (opens in a new tab)references/setup.md (opens in a new tab)references/verification.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/webhook-skills:retell-webhooksfrom webhook-skills
npx claudepluginhub hookdeck/webhook-skills --plugin webhook-skills219 skills in this plugin
/ada-webhooksReceive and verify Ada (ada.cx) AI customer service webhooks, delivered through Svix. Use when setting up an Ada webhook endpoint, getting the per-endpoint whsec_ signing secret, debugging svix-id / svix-timestamp / svix-signature verification, or handling events like v1.conversation.created, v1.conversation.message, v1.conversation.ended, v1.conversation.handoff.ended, v1.end_user.created, v1.end_user.updated, v1.audit_log.emitted and v1.proactive_call.* voice outreach events.
/adyen-webhooksReceive and verify Adyen webhooks (standard notifications). Use when setting up Adyen webhook handlers, debugging HMAC signature verification, or handling payment events like AUTHORISATION, CAPTURE, REFUND, CANCELLATION, and CHARGEBACK.
/2 plugins in one repository ship this exact skill · first indexed Jul 25, 2026
Other plugins' skills for the same job