Skip to main content

Read a Click2Call call

GET 

/api/v1/click2call/:id

Returns the current state of one call. This is the polling endpoint: call it until state is completed or failed.

States​

StateMeaning
acceptedThe call was placed; no leg has moved yet
agent_ringingYour SIP account is ringing — best-effort, may be skipped
agent_answeredYour SIP account answered
customer_ringingThe destination is being dialled
bridgedBoth legs are up and talking
completedThe call ended normally
failedThe call did not come together

agent_ringing is derived from a ringing indication on the agent leg, which some user agents never send. A call may therefore go straight from accepted to agent_answered; clients must not require agent_ringing.

reason​

reason answers why the call ended, on its own axis from state. It is null while the call is live and on a normal end. Otherwise it is one of no_answer, busy, unreachable, canceled, timed_out or platform_error. A call your own DELETE ended reports canceled — including when it had already been answered, in which case state is completed. A DELETE that arrives after the call has already ended leaves the original reason in place.

Retention​

A call is readable for 12 hours from the moment it was placed — not from the moment it ended. After that the record is gone and this endpoint answers 404. Call history is a separate product surface.

404​

404 call_not_found means the call is unknown to you: it never existed, the ID is malformed, it belongs to another account, or it has fallen out of the 12-hour window. The cases are deliberately indistinguishable.

data.recording_url feeds recordings_show. See also: click2call_destroy.

Request​

Responses​

The current state of the call.