Skip to navigation

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

AuthorizationBearer

Create and manage workspace-owned keys through the existing app session routes, outside this public API. Creator and manager identities are audit actors only. Key validity follows workspace policy, expiry and explicit revocation, independently of creator membership. Do not include a workspace-selection header.

Response headers

ETagstringOptional

Opaque setup revision; send as If-Match on a later setup edit.

Response

The SIP trunk setup.
enabledboolean
SIP trunking is switched on for this workspace. When false, every other field is null or empty.
statestring or null
address_regeneratingboolean
addresseslist of objects
inbound_connectionslist of objects
outbound_trunkslist of objects
failed_stepstring or nullOptional

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.

failure_reasonstring or nullOptional

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.

Errors

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