Skip to main content
POST
Create a call

Authorizations

Authorization
string
header
required

The API key, created in Settings › API, in the header Authorization: Bearer . The default.

Headers

Idempotency-Key
string

Up to 255 characters. Repeat the key with the same body within 24 hours and you get the same response plus an Idempotent-Replayed header set to true. 402, 409, 429 and 5xx responses (except send_outcome_unknown) are not stored: fix the cause and retry with the same key.

Required string length: 1 - 255

Body

application/json
voice_agent_id
string<uuid>
required
to
string
required

Phone number in E.164 format.

Pattern: ^\+[1-9]\d{6,14}$
Example:

"+34600111222"

lead
object

Written to the lead before dialing, so the agent can use it during the call.

Response

The ongoing call.

object
string
required
Allowed value: "call"
id
string<uuid>
required
voice_agent_id
string<uuid>
required
lead_id
string<uuid> | null
required

The call's lead; null if it could not be matched to one, for example with a hidden number, or if the lead was deleted.

direction
enum<string>
required

inbound: someone called you by phone. outbound: the agent placed the call. web: from the web chat.

Available options:
inbound,
outbound,
web
from
string | null
required

The caller, in E.164: the lead on an inbound call, your number on an outbound one. null if unknown.

to
string | null
required

The callee, in E.164: your number on an inbound call, the lead on an outbound one.

status
enum<string>
required

in_progress: ongoing. completed: finished. failed: failed while dialing, opening the room or during the call. dropped: cut off without the agent ending it. no_answer: nobody picked up. rejected: never handled (no balance, plan without calls, unknown number); end_reason says why.

Available options:
in_progress,
completed,
failed,
dropped,
no_answer,
rejected
end_reason
string | null
required

Why it ended: agent_ended, caller_hangup, caller_silent, max_duration, no_answer, busy, voicemail_detected, error...; on rejected calls, rejected_balance, rejected_plan... The list can grow.

outcome
string | null
required

How the call ended for the business (booked, qualified, not_interested...), if the agent set it.

summary
string | null
required

What happened on this call, written by the AI at hang-up. Not the lead summary.

variables
object
required

The agent fields the AI extracted from the call at hang-up, each with its confidence from 0 to 1: the same as the call.analyzed webhook. Only fields with enough confidence are copied to the lead. Empty until the analysis finishes.

started_at
string<date-time>
required
ended_at
string<date-time> | null
required
duration_sec
integer | null
required
recording_url
string<uri> | null
required

GET /calls/{call_id}/recording on this API, which redirects to the audio. null if there is no recording.

transcript_ready
boolean
required

Whether the transcript is ready. The text is in GET /calls/{call_id}.

transcript
object[]

Only in GET /calls/{call_id}: what was said, in order.