Skip to Content
CallMitraDocs
API referencePhone numbers

Get a SIP trunk

One SIP trunk with its settings, sync status and numbers. The password is never returned.

GET
/api/v1/sip-trunks/{trunk_id}

One SIP trunk with its settings, sync status and numbers. The password is never returned.

Authorization

headerX-API-Key<token>

Create in the console: Settings → API & webhooks.

Path Parameters

trunk_id*Trunk Id

The trunk's id from GET /sip-trunks.

Response Body

OK

application/json
  1. response

One SIP trunk.

success?Success

Always true on a 2xx response.

Defaulttrue
trunk*

The trunk.

[key: string]?any
Example Request
curl -X GET 'https://api.callmitra.ai/api/v1/sip-trunks/string'
Example Response
{  "success": true,  "trunk": {    "authMode": "digest",    "authRealm": "",    "codecs": [      "ulaw",      "alaw"    ],    "dtmfMode": "rfc4733",    "fromDomain": "",    "fromUser": "",    "hasPassword": true,    "host": "sip.provider.example",    "id": "5b0c2d4e-8f1a-4b3c-9d2e-7f6a5b4c3d21",    "inboundIps": [      "203.0.113.10"    ],    "isActive": true,    "lastError": "",    "maxConcurrentCalls": 10,    "name": "Acme SIP",    "numberFormat": "e164",    "numbers": [      {        "e164": "+918045671234",        "id": "9a8b7c6d-5e4f-4a3b-8c2d-1e0f9a8b7c6d",        "inboundAgentId": "4f6d2c1a-9b7e-4c3d-8a21-5e0f7b9c1d23",        "label": "Support line"      }    ],    "outboundProxy": "",    "port": 5060,    "register": true,    "status": "active",    "syncedAt": "2026-11-12T09:30:00Z",    "techPrefix": "",    "transport": "udp",    "username": "acme01"  }}