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
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
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.