API referencePhone numbers
List SIP trunks
Your own SIP providers connected to the calling gateway, the numbers on each, and the gateway address to give your provider. Passwords are never returned.
GET
Your own SIP providers connected to the calling gateway, the numbers on each, and the gateway address to give your provider. Passwords are never returned.
header
X-API-Key<token>Create in the console: Settings → API & webhooks.
OK
application/json- response
Your SIP trunks and the gateway details to give your provider.
gateway*Gateway details for your provider.
success?SuccessAlways true on a 2xx response.
Default
truetrunks*array<>Trunks, oldest first.
[key: string]?anycurl -X GET 'https://api.callmitra.ai/api/v1/sip-trunks'Example Response
{ "gateway": { "allowIp": "sip.callmitra.example", "enabled": true, "host": "sip.callmitra.example", "inboundUri": "sip:<number>@sip.callmitra.example:5060", "port": 5060 }, "success": true, "trunks": [ { "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" } ]}