Webhooks
Handle ElevenLabs post-call webhook
Inbound webhook called by ElevenLabs after a voice AI call completes. Dispatches by type: post_call_transcription creates the Call record and AI summary note, post_call_audio uploads the recording, call_initiation_failure records a missed/failed call and optionally fires a missed-call auto-SMS. Authenticated via HMAC signature (elevenlabs-signature header) or Bearer token (per-org elevenlabsToolSecret).
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
ElevenLabs post-call webhook payload. The type field discriminates between post_call_transcription, post_call_audio, and call_initiation_failure. The bulk of the data lives under data (or sometimes top-level for older payload shapes).
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/webhook/elevenlabs" \ -H "Content-Type: application/json" \ -d '{ "type": "post_call_transcription", "event_timestamp": 1747580641, "data": { "conversation_id": "conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01", "agent_id": "agent_a8d3c4e09b2f4e1ab3c45f6a7b8c9d01", "call_duration_secs": 42, "transcript": [ { "role": "agent", "message": "Thanks for calling Acme Corp, how can I help?" }, { "role": "user", "message": "I need to update my address." } ], "analysis": { "transcript_summary": "Caller asked to update their shipping address." }, "metadata": { "caller_id": "+14165550100", "called_id": "+12362320246", "phone_call": { "direction": "inbound", "external_number": "+14165550100", "agent_number": "+12362320246" } } } }'{ "received": true, "callId": "5f7b1c2e8a1d4e0012c3b4a5"}