Get the SIP trunk setup
Get the workspace’s SIP trunk: its state, the SIP addresses your carrier sends calls to, and its inbound connections and outbound trunks. A workspace without SIP trunking answers enabled false. Trunk passwords are write-only and never appear in a response. When state is failed, failed_step and failure_reason say where and why, as safe codes; retry with connectSipTrunk. A stopped address regeneration reports an address_ step on a ready setup; retry it with regenerateSipAddress. This read never starts or retries work.
Authentication
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.
Headers
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
Opaque setup revision; send as If-Match on a later setup edit.
Response
The setup step that failed (state failed), or the address regeneration step that stopped (state ready with address_regenerating); null otherwise. A step name only, never a key or a value.
A safe code for why the last setup job failed; null when nothing failed. Never provider text. provider_refused, provider_conflict: the SIP provider refused a setup request; provider_unavailable: it could not be reached; provider_auth_failed: the platform’s provider access was refused; provider_rate_limited: the provider limited requests; sip_trunk_not_ready: the SIP setup was not ready for this step; internal_error: a platform fault. Retry with connectSipTrunk, or with regenerateSipAddress when failed_step starts with address_; contact support if it repeats.