API referencePhone numbers
Get a SIP trunk
One SIP trunk with its settings, sync status and numbers. The password is never returned.
GET
One SIP trunk with its settings, sync status and numbers. The password is never returned.
header
X-API-Key<token>Create in the console: Settings → API & webhooks.
trunk_id*Trunk IdThe trunk's id from GET /sip-trunks.
OK
application/json- response
One SIP trunk.
success?SuccessAlways true on a 2xx response.
Default
truetrunk*The trunk.
[key: string]?anycurl -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" }}