Webhooks
Webhook events
This page lists every event Vaakyo sends during a call, when it is sent, and the fields it carries in data.
Each event (except call.completed and ping) is also saved on the call’s timeline (GET /api/v1/calls/{id}/events), with the same type, message, level, latency_ms and data.
Order of events
A typical outbound call:
call.queued → call.dequeued → call.placed → call.started → welcome → tts.first_audio
→ user.turn → llm.first_token → tts.first_audio → agent.reply
→ user.turn → llm.first_token → tool.call → tool.result → tts.first_audio → agent.reply
→ ... → tool.call (end_call) → call.ended → call.completed
Inbound and browser calls start at call.started. A call that never connects ends with call.ended and has no call.completed.
Lifecycle events and timeline events
By default (the agent’s webhook URL, and endpoints subscribed to "*") you get the call’s lifecycle: call.queued → call.placed (dialling) → call.started (in progress) → call.ended → call.completed (the final record, after analytics). An endpoint can also list, by name in events, any of crm.updated, call.voicemail, call.rescheduled, call.transferred, call.transfer_status, tool.call, error and guardrail.violation. The other events below are on the call’s timeline (GET /api/v1/calls/{id}/events) but are not sent to endpoints.
All events
| Event | When | Extra data fields |
|---|---|---|
call.queued | An outbound call joined the queue. | position, by |
call.dequeued | A slot was free and the call is about to be dialled. latency_ms is how long it waited. | |
call.caller_id | Just before dialling, Vaakyo sent the brand and call reason to Truecaller (Truecaller caller ID). level is warning if it could not be sent. | ok, reason, error when it failed |
call.placed | The carrier accepted the dial request. | |
call.started | The call connected and the agent is live. | channel, from, to, stt, llm, tts, started_by, values |
welcome | The agent starts saying its welcome message (the text is in message). | |
tts.first_audio | The agent’s first audio of a reply played. latency_ms is from the caller finishing to this moment. | welcome: true for the welcome message |
user.turn | The caller finished a turn (message is what they said). | One of these flags when it wasn’t answered right away: after_goodbye (said after the agent decided to hang up), backchannel (a listening sound while the agent spoke), queued (answered once the agent finished: interruptions off, the greeting or a tool call), unvoiced (no voice was heard behind the words; answered after the agent finished), background (a voice much quieter than the caller’s, such as a TV; not answered) |
llm.first_token | The LLM started answering. latency_ms is from the caller finishing. | model_ms: time since the LLM request was sent |
agent.reply | The agent finished a reply (message is the full text). | |
interrupted | The caller talked over the agent, which stopped (message is what the caller heard). | source (final, keypad), caller (what they said), words (real words counted), paused_first, ms_into_reply, stt |
interruption.false | The agent paused for the caller but nothing real followed (noise, a cough, “haan”), so it carried on from where it paused. | heard (what the transcriber thought it heard), why, paused_ms |
tool.call | The agent called a tool. | name, args, url (name only for end_call) |
tool.result | The tool answered or failed. latency_ms is the request time. level is warning unless the status is 2xx. | name, status, result |
kb.search | The agent searched its knowledge bases. latency_ms is the whole search; level is warning if it failed. | query, hits, passages, top (source, score and keyword match of each passage found), error if it failed |
kb.inline | The agent’s knowledge bases are small enough and were put whole into its prompt. | characters |
user.online_check | The agent asked whether the caller is still there. | |
memory | At call start, what caller memory read: how many notes about the caller, or that there were none. level is warning if memory couldn’t be read. | facts, calls |
memory.updated | After the call, the caller’s notes were updated (caller memory). level is warning if they couldn’t be. | facts, calls, version, added, removed, name, name_before; store: "supermemory" when the call went to Supermemory |
hangup.prompt | The hang-up prompt decided the conversation is over. | |
fallback.used | A fallback voice or transcriber took over for the rest of the call. level is warning. | component (tts or stt), reason, from, to |
voice.replaced | The agent’s Cartesia voice no longer exists at Cartesia (removed from its library), so the call uses the first voice for the agent’s language instead. Pick a new voice for the agent. level is warning. | voice_id (the missing one) |
capacity.fallback | A fallback voice spoke that reply, or a fallback transcriber took the call. level is warning. | component (tts or stt), provider (the full one), from, to |
capacity.exceeded | Concurrency threshold reached and no fallback had room. level is warning. | component, provider, from |
call.dtmf | The caller pressed phone keys (keypad input on); message is what the agent received, e.g. [keypad: 1 2 3 #]. | digits (e.g. "123#") |
call.voicemail | The carrier reported an answering machine (voicemail detection on): the agent leaves its voicemail message, or hangs up; or, when the other end sounds like a person, the call goes on (overruled). | answered_by (the carrier’s word), left_message (true when a message is left), overruled (true when the call goes on) |
error | Something went wrong. level is warning or error. | Sometimes provider |
call.rescheduled | A call back was booked (auto reschedule); message gives the local time. level is warning when the after-call check found a time it could not book. | call_id (the booked call), at (UTC), source (tool or post_call), note |
crm.updated | A CRM tool changed a record of the caller (message says what, e.g. booking created). One event per change. | kind (contact, booking or order), action (created, updated, rescheduled or cancelled), id |
call.transferred | The agent handed the caller to a person (transfer to a human); the agent’s part ends next. | name, number, reason |
guardrail.violation | Platform compliance identified a policy violation (Guardrails). One event per incident. level is error for a violation, warning for a warning. | incident_id, rule_id, rule_name, severity, quote, confidence, action (notice, frozen or warning), strike |
call.transfer_status | The transfer’s outcome: the person answered, or no one did. level is warning unless answered. | status (answered, no-answer, busy, failed or canceled), name, number |
call.ended | The call ended, for any reason. | see below |
call.completed | The final call record is saved, after post-call analytics. | call |
ping | A test sent with Send test in the console. |
call.started
{
"type": "call.started",
"data": {
"message": "outbound call with Appointment reminder",
"level": "info",
"latency_ms": null,
"channel": "phone",
"from": "+919000000001",
"to": "+919000000000",
"stt": "cartesia/ink-2",
"llm": "gemini-3.5-flash-lite",
"tts": "cartesia/sonic-3.6/Riya",
"started_by": "",
"values": ["customer_name", "slot"]
}
}
values lists the user_data keys the call has (not their values). started_by is the person’s name for browser calls.
tool.result
{
"type": "tool.result",
"data": {
"message": "check_availability -> HTTP 200",
"level": "info",
"latency_ms": 184,
"name": "check_availability",
"status": 200,
"result": {"status": 200, "result": {"free_slots": ["10:30", "12:00"]}}
}
}
result is what the LLM received (see Tools), cut to about 3000 characters. status is 0 when your endpoint did not answer.
call.ended
When a call that connected ends:
{
"type": "call.ended",
"data": {
"message": "ended by agent: agent ended the call",
"level": "info",
"latency_ms": null,
"duration_seconds": 14.2,
"avg_first_audio_ms": 1050,
"usage": {"stt_seconds": 14.0, "tts_characters": 121, "llm_input_tokens": 1840, "llm_output_tokens": 41, "llm_calls": 1}
}
}
level is error when the call ended because of an error.
When a call never connected, message says why and there is no usage:
| Case | message | level | Extra |
|---|---|---|---|
| The carrier reported no answer, busy, failed or canceled | not connected: no-answer | warning | plivo: the carrier’s status |
| Canceled while queued | canceled while queued | info | |
| Expired, out of credits, agent deleted, dial refused | the hangup_reason | warning (error for credits and refusals) |
call.completed
Sent once per connected call, after post-call analytics, with the full call object plus transcript_text:
{
"id": "evt_1f2e3d4c5b6a79880a1b2c3d4e5f6a7b",
"type": "call.completed",
"created_at": "2026-10-01T09:14:21.733000+00:00",
"workspace_id": "6df74233a1b04c2e9f8d7c6b5a4e3d2c",
"call_id": "00b1d622a8f04f4f8f3a3c2d9e5b7a11",
"agent_id": "1b81a241c0e44f5c9d1f0e2a7c3b9d10",
"data": {
"message": "call completed",
"level": "info",
"latency_ms": null,
"call": {
"id": "00b1d622a8f04f4f8f3a3c2d9e5b7a11",
"agent_name": "Appointment reminder",
"direction": "outbound",
"to_number": "+919812345678",
"status": "completed",
"user_data": {"customer_name": "Rohan", "slot": "11 am"},
"transcript": [{"role": "assistant", "text": "Hello Rohan, ...", "at": "2026-10-01T09:14:02.410000Z", "interrupted": false}],
"transcript_text": "assistant: Hello Rohan, ...\nuser: Yes, I'll be there at eleven.\nassistant: Great, we'll see you tomorrow at 11 am. Goodbye!",
"duration_seconds": 14.2,
"cost_paise": 95,
"hangup_by": "agent",
"hangup_reason": "agent ended the call",
"summary": "City Clinic called Rohan to confirm tomorrow's 11 am appointment. ...",
"extracted": {"confirmed": true, "new_day": null},
"...": "..."
}
}
}
Times in webhooks are in UTC. This is the event to use for syncing results to your CRM: it has the outcome, the transcript, the analytics and the cost in one place.
ping
{
"id": "evt_ping",
"type": "ping",
"created_at": "2026-10-01T09:30:00.000000+00:00",
"workspace_id": "6df74233a1b04c2e9f8d7c6b5a4e3d2c",
"call_id": "",
"agent_id": "",
"data": {"message": "Test event from Vaakyo"}
}
call.voicemail
The carrier’s answering-machine detection heard a machine. The call then ends with hangup_reason voicemail and the call’s answered_by is machine.
{
"type": "call.voicemail",
"data": {
"message": "answering machine: leaving the voicemail message",
"level": "info",
"latency_ms": null,
"answered_by": "machine",
"left_message": true
}
}
The carrier reports that an answering machine answered (answered_by is machine).
crm.updated
The agent changed one of the caller’s CRM records during the call: saved their contact, made, moved or
cancelled a booking, or placed an order. Fetch the record in the console’s CRM by its id.
{
"type": "crm.updated",
"data": {
"message": "order created",
"level": "info",
"latency_ms": null,
"kind": "order",
"action": "created",
"id": "or_3f9c2a71b0d84e6a9c15"
}
}
kind | action |
|---|---|
contact | updated (the contact is created when it didn’t exist) |
booking | created, rescheduled, cancelled |
order | created |
fallback.used
The agent’s voice or transcriber failed and a backup took over. from and to name the provider, model, and the voice or language.
{
"type": "fallback.used",
"data": {
"message": "voice switched to cartesia/sonic-3.6 (Meera): connection lost",
"level": "warning",
"latency_ms": null,
"component": "tts",
"reason": "connection lost",
"from": {"provider": "cartesia", "model": "sonic-3.6", "voice_id": "a0e99841-438c-4a64-b679-ae501e7d6091", "voice_name": "Riya", "language": "hi"},
"to": {"provider": "cartesia", "model": "sonic-3.6", "voice_id": "f9836c6e-a0bd-460e-9d3c-f7299fa60f94", "voice_name": "Meera", "language": "hi"}
}
}
voice.replaced
At the start of a call, the agent’s Cartesia voice wasn’t found at Cartesia (a voice removed from its library). Rather than fail at its first words, the call goes on with the first voice for the agent’s language. Open the agent and pick a new voice.
{
"type": "voice.replaced",
"data": {
"message": "voice Priya no longer exists at Cartesia: using another hi voice; pick a new voice for this agent",
"level": "warning",
"latency_ms": null,
"voice_id": "2d5f0e38-4e89-4cd9-bf0c-d9c02506e90a"
}
}
capacity.fallback
When concurrent streaming limits are reached on a voice or transcriber component, the next available fallback voice or transcriber serves the request seamlessly.
{
"type": "capacity.fallback",
"data": {
"message": "cartesia voice capacity full: this reply uses elevenlabs/eleven_flash_v2_5 (Anika)",
"level": "warning",
"latency_ms": null,
"component": "tts",
"provider": "cartesia",
"from": {"provider": "cartesia", "model": "sonic-3.6", "voice_id": "a0e99841-438c-4a64-b679-ae501e7d6091", "voice_name": "Riya", "language": "hi"},
"to": {"provider": "elevenlabs", "model": "eleven_flash_v2_5", "voice_id": "zT03pEAEi0VHKciJODfn", "voice_name": "Anika", "language": "hi"}
}
}
With no fallback available, turns proceed automatically without leaving calls silent.