List voice calls
List voice calls for this project, most recent first. Transcripts are omitted from the list; fetch a single call to get its transcript.
Authorization
AuthorizationheaderrequiredBearer YOUR_API_KEY. Create a key in the dashboard.
Query parameters
statusstringLifecycle status of a voice call. -
queued: outbound call created, not yet dialing. -ringing: dialing (outbound) or received and ringing (inbound). -in_progress: answered, the agent is connected. -completed: ended after a conversation. -failed: could not be completed. -busy: the line was busy. -no_answer: rang but was not answered. -canceled: canceled before it was answered.One ofqueuedringingin_progresscompletedfailedbusyno_answercanceleddirectionstringWhether the call was placed by Zavu (outbound) or received from a caller (inbound).
One ofinboundoutboundsenderIdstringKeep only calls placed or received by this sender.
limitintegerDefault50Limitsmax 100cursorstring
Responses
200List of voice calls.
itemsobject[]required15 properties
idstringrequireddirectionstringrequiredWhether the call was placed by Zavu (outbound) or received from a caller (inbound).
One ofinboundoutboundfromstringrequiredCaller phone number in E.164 format. Your sender's number for outbound calls; the caller's number for inbound calls.
tostringrequiredCallee phone number in E.164 format.
statusstringrequiredLifecycle status of a voice call. -
queued: outbound call created, not yet dialing. -ringing: dialing (outbound) or received and ringing (inbound). -in_progress: answered, the agent is connected. -completed: ended after a conversation. -failed: could not be completed. -busy: the line was busy. -no_answer: rang but was not answered. -canceled: canceled before it was answered.One ofqueuedringingin_progresscompletedfailedbusyno_answercanceledendReasonstringWhy the call ended (e.g.
agent_ended,max_duration,transfer,hangup). Present once the call is no longer active.answeredAtstring<date-time>When the call was answered.
endedAtstring<date-time>When the call ended.
durationSecondsintegerBillable talk time in seconds, measured from answer to hangup.
turnCountintegerNumber of conversation turns exchanged during the call.
transcriptobject[]Ordered transcript of the call. Included when retrieving a single call; omitted from list responses.
5 properties
seqintegerrequiredOrdinal position of the turn within the call, starting at 0.
rolestringrequiredWho produced the turn.
toolrecords a tool call the agent made during the conversation.One ofuserassistanttooltextstringrequiredTranscribed speech for
userandassistantturns, or a JSON summary of the tool call fortoolturns.startedAtstring<date-time>When the turn started.
endedAtstring<date-time>When the turn ended.
costnumberTotal cost of the call in USD, combining the managed voice pipeline per-minute charge, telephony, and, on an agent that runs a premium model, that model's tokens. Available once the call has ended. Tokens are charged between 30 minutes and 24 hours after the call ends, so the figure can grow until then.
metadataobjectArbitrary metadata you attached when creating the call.
1 properties
{key}string
createdAtstring<date-time>requiredupdatedAtstring<date-time>
nextCursorstring
400Invalid query parameters: an unknown `status` or `direction`, or a `limit` outside 1-100.
codestringrequiredmessagestringrequireddetailsobject
401Unauthorized.
codestringrequiredmessagestringrequireddetailsobject