curl --request POST \
--url https://your-instance.example.com/api/webhook/elevenlabs \
--header 'Content-Type: application/json' \
--data '
{
"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"
}
}
}
}
'import requests
url = "https://your-instance.example.com/api/webhook/elevenlabs"
payload = {
"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"
}
}
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
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'
}
}
}
})
};
fetch('https://your-instance.example.com/api/webhook/elevenlabs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-instance.example.com/api/webhook/elevenlabs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your-instance.example.com/api/webhook/elevenlabs"
payload := strings.NewReader("{\n \"type\": \"post_call_transcription\",\n \"event_timestamp\": 1747580641,\n \"data\": {\n \"conversation_id\": \"conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01\",\n \"agent_id\": \"agent_a8d3c4e09b2f4e1ab3c45f6a7b8c9d01\",\n \"call_duration_secs\": 42,\n \"transcript\": [\n {\n \"role\": \"agent\",\n \"message\": \"Thanks for calling Acme Corp, how can I help?\"\n },\n {\n \"role\": \"user\",\n \"message\": \"I need to update my address.\"\n }\n ],\n \"analysis\": {\n \"transcript_summary\": \"Caller asked to update their shipping address.\"\n },\n \"metadata\": {\n \"caller_id\": \"+14165550100\",\n \"called_id\": \"+12362320246\",\n \"phone_call\": {\n \"direction\": \"inbound\",\n \"external_number\": \"+14165550100\",\n \"agent_number\": \"+12362320246\"\n }\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://your-instance.example.com/api/webhook/elevenlabs")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"post_call_transcription\",\n \"event_timestamp\": 1747580641,\n \"data\": {\n \"conversation_id\": \"conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01\",\n \"agent_id\": \"agent_a8d3c4e09b2f4e1ab3c45f6a7b8c9d01\",\n \"call_duration_secs\": 42,\n \"transcript\": [\n {\n \"role\": \"agent\",\n \"message\": \"Thanks for calling Acme Corp, how can I help?\"\n },\n {\n \"role\": \"user\",\n \"message\": \"I need to update my address.\"\n }\n ],\n \"analysis\": {\n \"transcript_summary\": \"Caller asked to update their shipping address.\"\n },\n \"metadata\": {\n \"caller_id\": \"+14165550100\",\n \"called_id\": \"+12362320246\",\n \"phone_call\": {\n \"direction\": \"inbound\",\n \"external_number\": \"+14165550100\",\n \"agent_number\": \"+12362320246\"\n }\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/webhook/elevenlabs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"post_call_transcription\",\n \"event_timestamp\": 1747580641,\n \"data\": {\n \"conversation_id\": \"conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01\",\n \"agent_id\": \"agent_a8d3c4e09b2f4e1ab3c45f6a7b8c9d01\",\n \"call_duration_secs\": 42,\n \"transcript\": [\n {\n \"role\": \"agent\",\n \"message\": \"Thanks for calling Acme Corp, how can I help?\"\n },\n {\n \"role\": \"user\",\n \"message\": \"I need to update my address.\"\n }\n ],\n \"analysis\": {\n \"transcript_summary\": \"Caller asked to update their shipping address.\"\n },\n \"metadata\": {\n \"caller_id\": \"+14165550100\",\n \"called_id\": \"+12362320246\",\n \"phone_call\": {\n \"direction\": \"inbound\",\n \"external_number\": \"+14165550100\",\n \"agent_number\": \"+12362320246\"\n }\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"received": true,
"callId": "5f7b1c2e8a1d4e0012c3b4a5"
}{
"error": "Webhook processing failed"
}{
"error": "Webhook processing failed"
}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).
curl --request POST \
--url https://your-instance.example.com/api/webhook/elevenlabs \
--header 'Content-Type: application/json' \
--data '
{
"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"
}
}
}
}
'import requests
url = "https://your-instance.example.com/api/webhook/elevenlabs"
payload = {
"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"
}
}
}
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
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'
}
}
}
})
};
fetch('https://your-instance.example.com/api/webhook/elevenlabs', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-instance.example.com/api/webhook/elevenlabs",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'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'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your-instance.example.com/api/webhook/elevenlabs"
payload := strings.NewReader("{\n \"type\": \"post_call_transcription\",\n \"event_timestamp\": 1747580641,\n \"data\": {\n \"conversation_id\": \"conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01\",\n \"agent_id\": \"agent_a8d3c4e09b2f4e1ab3c45f6a7b8c9d01\",\n \"call_duration_secs\": 42,\n \"transcript\": [\n {\n \"role\": \"agent\",\n \"message\": \"Thanks for calling Acme Corp, how can I help?\"\n },\n {\n \"role\": \"user\",\n \"message\": \"I need to update my address.\"\n }\n ],\n \"analysis\": {\n \"transcript_summary\": \"Caller asked to update their shipping address.\"\n },\n \"metadata\": {\n \"caller_id\": \"+14165550100\",\n \"called_id\": \"+12362320246\",\n \"phone_call\": {\n \"direction\": \"inbound\",\n \"external_number\": \"+14165550100\",\n \"agent_number\": \"+12362320246\"\n }\n }\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://your-instance.example.com/api/webhook/elevenlabs")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"post_call_transcription\",\n \"event_timestamp\": 1747580641,\n \"data\": {\n \"conversation_id\": \"conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01\",\n \"agent_id\": \"agent_a8d3c4e09b2f4e1ab3c45f6a7b8c9d01\",\n \"call_duration_secs\": 42,\n \"transcript\": [\n {\n \"role\": \"agent\",\n \"message\": \"Thanks for calling Acme Corp, how can I help?\"\n },\n {\n \"role\": \"user\",\n \"message\": \"I need to update my address.\"\n }\n ],\n \"analysis\": {\n \"transcript_summary\": \"Caller asked to update their shipping address.\"\n },\n \"metadata\": {\n \"caller_id\": \"+14165550100\",\n \"called_id\": \"+12362320246\",\n \"phone_call\": {\n \"direction\": \"inbound\",\n \"external_number\": \"+14165550100\",\n \"agent_number\": \"+12362320246\"\n }\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/webhook/elevenlabs")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"post_call_transcription\",\n \"event_timestamp\": 1747580641,\n \"data\": {\n \"conversation_id\": \"conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01\",\n \"agent_id\": \"agent_a8d3c4e09b2f4e1ab3c45f6a7b8c9d01\",\n \"call_duration_secs\": 42,\n \"transcript\": [\n {\n \"role\": \"agent\",\n \"message\": \"Thanks for calling Acme Corp, how can I help?\"\n },\n {\n \"role\": \"user\",\n \"message\": \"I need to update my address.\"\n }\n ],\n \"analysis\": {\n \"transcript_summary\": \"Caller asked to update their shipping address.\"\n },\n \"metadata\": {\n \"caller_id\": \"+14165550100\",\n \"called_id\": \"+12362320246\",\n \"phone_call\": {\n \"direction\": \"inbound\",\n \"external_number\": \"+14165550100\",\n \"agent_number\": \"+12362320246\"\n }\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"received": true,
"callId": "5f7b1c2e8a1d4e0012c3b4a5"
}{
"error": "Webhook processing failed"
}{
"error": "Webhook processing failed"
}Body
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).
Event discriminator selecting how the handler processes data: transcript+summary, recording upload, or missed-call record.
post_call_transcription, post_call_audio, call_initiation_failure Unix epoch seconds when ElevenLabs emitted the event.
Event payload; field set depends on type. Older payloads sometimes inline these fields at top level.
Show child attributes
Show child attributes