Skip to Content
SIP trunks

List SIP trunks

Permissionsip-trunks:readAuthentication
GET
/sip-trunks

Returns the workspace's SIP trunks in deterministic reverse-creation order. Raw provider error bodies are never returned to API keys; use last_error_code and last_error for recovery decisions.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Query Parameters

cursor?string

Opaque pagination cursor from a previous response's next_cursor.

limit?integer

Number of catalog resources to return. The server fetches one extra row internally to produce next_cursor.

Range1 <= value <= 200
Default50
q?string

Case-insensitive literal substring search across slug, name, and description. The supplied and trimmed values must each contain 1–200 Unicode characters; blank values and every Unicode control character are rejected. Percent, underscore, and backslash are literal characters, not LIKE syntax.

Length1 <= length <= 200
created_from?string

Inclusive created_at lower bound as RFC3339 or YYYY-MM-DD (midnight UTC).

created_to?string

Exclusive created_at upper bound as RFC3339 or YYYY-MM-DD (midnight UTC). Must be after created_from.

archived?string

Whether archived resources are excluded, included alongside active resources, or returned exclusively.

Default"exclude"
Value in"exclude""include""only"
status?string

Exact status filter. status=archived requires archived=include or archived=only.

Value in"provisioning""active""error""archived"
provider?string

sip uses customer-managed carrier/PBX configuration; twilio_automated provisions Twilio resources from stored account credentials.

Value in"sip""twilio_automated"
sip_signaling_mode?string
Value in"static_peer""registered_peer""remote_registered_peer"

Response Body

A page of SIP trunks. next_cursor is null when the page is terminal.

application/json
  1. response
data*array<>
next_cursor*string|null
Example Request
curl -X GET 'https://api.kejue.co/v1/sip-trunks'
Example Response
{  "data": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "provider": "sip",      "sip_signaling_mode": "static_peer",      "inbound_auth_mode": "ip_allowlist",      "inbound_allowed_addresses": [        "string"      ],      "outbound_address": "string",      "outbound_transport": "udp",      "outbound_auth_mode": "ip_allowlist",      "has_credentials": true,      "registrar_username": "string",      "registrar_domain": "string",      "registration_status": "not_applicable",      "registration_contact": "string",      "last_register_at": "2019-08-24T14:15:22Z",      "registration_expires_at": "2019-08-24T14:15:22Z",      "registration_checked_at": "2019-08-24T14:15:22Z",      "remote_registrar_address": "string",      "remote_registrar_domain": "string",      "remote_register_realm": "string",      "remote_register_username": "string",      "remote_registrar_transport": "udp",      "remote_register_expires_seconds": 0,      "livekit_inbound_trunk_id": "string",      "livekit_outbound_trunk_id": "string",      "status": "provisioning",      "last_error": "string",      "last_error_code": "string",      "archived_at": "2019-08-24T14:15:22Z",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z",      "inbound_allowed_numbers": [        "string"      ],      "inbound_media_encryption": "disable",      "inbound_ringing_timeout_ms": 0,      "inbound_max_call_duration_ms": 0,      "inbound_headers": {        "property1": "string",        "property2": "string"      },      "inbound_headers_to_attributes": {        "property1": "string",        "property2": "string"      },      "inbound_attributes_to_headers": {        "property1": "string",        "property2": "string"      },      "inbound_include_headers": "none",      "outbound_metadata": "string",      "outbound_destination_country": "string",      "outbound_media_encryption": "disable",      "outbound_from_host": "string",      "outbound_headers": {        "property1": "string",        "property2": "string"      },      "outbound_headers_to_attributes": {        "property1": "string",        "property2": "string"      },      "outbound_attributes_to_headers": {        "property1": "string",        "property2": "string"      },      "outbound_include_headers": "none",      "outbound_allowed_prefixes": [        "string"      ],      "outbound_allowed_sip_hosts": [        "string"      ],      "pcap_enabled": true,      "outbound_capacity_mode": "unknown",      "max_concurrent_outbound": 0,      "max_outbound_cps": 0,      "outbound_cps_burst": 0,      "outbound_capacity_profile_id": "02bf7876-e473-45bd-8a48-0a573b361197",      "outbound_via_proxy": true    }  ],  "next_cursor": "string"}