Skip to navigation

Read call state

Read actual executed publication and independent result readiness. Do not use state text alone to infer result readiness.

Authentication

AuthorizationBearer

An organisation-owned key whose secret starts ra_org_. The Owner or an Admin of an organisation that Rasen has invited makes it in the app; no API operation makes, changes, rotates or revokes a key. On a workspace operation send the workspace ID in the Rasen-Workspace header; without it the answer is 400 invalid_request with details.field Rasen-Workspace. A workspace outside the organisation or outside the key’s workspace list is 404 not_found. An organisation that is not invited gets 403 organisation_api_not_enabled.

Path parameters

call_idstringRequired1-128 characters
Resource identity within the authenticated workspace.

Headers

Rasen-WorkspacestringRequired

The ID of the workspace that this operation acts in. It must be a workspace of the key’s organisation and in the key’s workspace list. A missing, empty or malformed value is 400 invalid_request with details.field Rasen-Workspace; a workspace outside the organisation or the key’s workspace list is the hidden 404 not_found.

Response headers

X-Request-IdstringOptional
Safe server request correlation ID.
RateLimit-LimitintegerOptional
Requests allowed in the current window for the tightest applicable limit.
RateLimit-RemainingintegerOptional
Requests left in the current window.
RateLimit-ResetintegerOptional
Seconds until the current window resets.

Response

Read call state.
idstring<=128 characters
Opaque call identifier. Do not parse its contents.
agent_idstring<=128 characters
Opaque agent identifier. Do not parse its contents.
published_version_idstring or null<=128 characters
statestring

Canonical call lifecycle value; clients must tolerate new values. Terminality is given separately. Known values: admitted, active, evidence_pending, complete, incomplete, aborted.

terminalboolean
directionstring

Open response vocabulary. Preserve unknown values; never assume they mean success.

created_atdatetime
ended_atdatetime or null
end_reasonstring or null

Safe registered call-end reason. Since 1.14.0 a phone or agent-session call that the agent ended is agent_hangup (before, it was often completed), and an answered call whose line failed is line_dropped. Preserve a value you do not know.

dial_outcomestring or null

The carrier’s outcome for the outbound dial that placed this call: dialing until the carrier reports, then its latest report. Null when no carrier dial placed the call (inbound, browser and test calls). Open response vocabulary. Preserve unknown values; never assume they mean success.

dial_sip_codeinteger or null100-699

The SIP response code the carrier gave for the dial, when it gave one (for example 480 temporarily unavailable, 486 busy).

metadatamap from strings to strings
transcript_statestring

Open response vocabulary. Preserve unknown values; never assume they mean success.

extraction_statestring

Open response vocabulary. Preserve unknown values; never assume they mean success.

from_number_idstring or null<=128 characters

Number used for this call; null for non-phone calls.

updated_atdatetime
poll_after_secondsinteger or null>=1
Seconds before the next useful read. Null when the call is terminal and every result state is settled.
effective_variableslist of objects
summary_statestring

Open response vocabulary. Preserve unknown values; never assume they mean success.

transfer_destination_labelstring or null<=60 characters

The name of the destination the call’s last transfer went to, set only when the call ended transferred or transfer_failed. Never the destination’s number or address.

transfer_duration_msinteger or null>=0

The time the caller spent connected to the transfer destination, as the carrier reported it; null when no transfer connected or the time is not reported yet.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error