POST /v1/calls (or many at once with batches), and it has an id like call_6f1d2c9a8b7e4f3a2d1c0b9a that you keep.
Statuses
A call in a final status never changes again, and its webhook is sent exactly once when it gets there.
A call shows
completed as soon as it ends, but it becomes final (and its webhook is sent) once the outcome and the recording are attached, usually within a minute or two of hanging up. If either never arrives, the call is finalised 10 minutes after it ended, with what is available. Until then, GET /v1/calls/{id} may show completed with outcome: null.Reading a call
Why a call is waiting, was canceled or failed, in plain words. Only present when there is a reason.
While
queued: the earliest time it will be tried again, when it is held (outside calling hours, recall gap, daily limit).true for a test call.ISO-8601 UTC timestamps.
ended_at is set once the call is final: when the call itself ended, or, for a call that was never dialled, when it was canceled, expired or failed.{credits, billed}: what the call cost. See Credits and usage.A temporary link to the recording, valid until
recording_expires_at (24 hours). Read the call again for a fresh link.What the agent learned. See Outcomes.
Only in the response to
POST /v1/calls (and on each row of a batch’s calls), and only when there is something to say: [{field, code, message}]. Today the one code is reserved_variable: a variable named like a built-in placeholder, which was kept but does not replace the built-in value. The call was created either way.Canceling
POST /v1/calls/{id}/cancel cancels a call that is still queued. Once it is dialing it cannot be stopped; the request returns 409 call_not_cancelable with the current status.
Finding calls
GET /v1/calls lists calls newest first. Filter with:
external_id: every call for one of your records (thecontact.external_idyou sent).batch_id: every call in a batch.created_after: calls created after an ISO-8601 time.
One call per number at a time
A number that already has a call waiting in the queue cannot get a second one: the request fails with409 call_already_queued, and details.call_id is the call already waiting. Once that call has been dialled, you can queue another, subject to the limits.