Place a voice call
Place an outbound voice call answered by the voice agent configured on the sender. Zavu dials the recipient and runs the conversation through its managed voice pipeline (speech recognition, the agent's LLM, and speech synthesis, with real-time interruption handling).
Requirements:
- An account may call any destination from its first minute, within the daily ceiling: 5 calls a day for an account that has verified nothing, 50 a day on Free once it has verified its identity, added a payment method, settled a deposit or subscribed. Paid plans have no daily call ceiling. Over it,
429with codedaily_limit_exceeded. Full reference: https://www.zavu.dev/docs/concepts/sending-limits - The call is read by Zavu's automated risk review before it is dialed, the way a message is (see
POST /v1/messages). A call is never held for a person: one the review stops is failed rather than placed late. Repeated refusals suspend the account's calling, answered with403and codesending_suspended. - The sender's agent must have
voice.enabledset totrue. - Not available with test-mode API keys.
Billing: Voice calls are billed per minute of connected time plus telephony, deducted from your prepaid balance. A short-duration estimate is reserved when the call is placed; you are charged for the actual duration when the call ends.
Authorization
AuthorizationheaderrequiredBearer YOUR_API_KEY. Create a key in the dashboard.
Body
application/json
tostringrequiredRecipient phone number in E.164 format.
senderIdstringSender profile that places the call. Uses the project's default sender if omitted. The sender's agent must have voice enabled.
greetingstringOverrides the agent's configured greeting for this call only.
Limitsmax length 1000languagestringLanguage the agent speaks on this call only, as a BCP-47 tag (
en,es,es-ES,pt-BR), orautoto detect the caller's language and follow it. Overrides the agent's configured language for speech recognition, the agent's replies, and the synthesized voice. If the agent uses a custom voice you supplied, that voice is kept and only the language changes. When omitted, the agent's configured language is used.Limitsmax length 15maxDurationMinutesintegerOverrides the agent's maximum call duration for this call only.
Limitsmin 1 · max 120metadataobjectArbitrary metadata to associate with the call. Returned on the call object and included in voice webhooks.
1 properties
{key}string
Responses
202Call accepted and dialing.
callobjectrequired15 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>
400Invalid request, the sender's agent does not have voice enabled, or voice calls are not available in test mode.
codestringrequiredmessagestringrequireddetailsobject
401Unauthorized.
codestringrequiredmessagestringrequireddetailsobject
402Insufficient balance (`insufficient_balance`), or the call would exceed the team's monthly spend cap (`spend_cap_reached`, with `details.dashboardUrl`).
codestringrequiredmessagestringrequireddetailsobject
403This account's calling is suspended after Zavu's automated review refused several of its sends (`sending_suspended`), or the destination is not one this account may call yet (`destination_not_verified`).
codestringrequiredmessagestringrequireddetailsobject
404Sender or agent not found.
codestringrequiredmessagestringrequireddetailsobject
429Daily call limit reached. An account that has verified nothing may place 5 calls a day, and 50 on a Free plan once it has verified its identity, added a payment method, settled a deposit or subscribed. Paid plans have no daily call ceiling.
codestringrequiredmessagestringrequireddetailsobject