Phones - Sip Trunks
Get SIP trunk by ID
get/api/v1/phones/sip-trunks/:id
Request
- Base URL: https://api.voicelogica.ai
- URL: https://api.voicelogica.ai/api/v1/phones/sip-trunks/:id
- Auth: API key in header x-api-key
Headers
x-api-keystring required
Your API key for authentication. Required for all endpoints.
x-company-idstring
Optional company ID for resellers. When provided, the API request will operate on behalf of the specified subsidiary company. The API key must have access to the specified company.
Response
SIP trunk retrieved
Example response
{
"id": "507f1f77bcf86cd799439011",
"createdAt": "2024-01-15T10:30:00.000Z",
"active": true,
"createdBy": "John Doe",
"createdById": "123",
"modifiedAt": "2024-01-15T10:30:00.000Z",
"modifiedBy": "Jane Doe",
"modifiedById": "456",
"companyId": "507f1f77bcf86cd799439012",
"name": "Carrier A",
"host": "sip.carrier.example",
"port": 5060,
"transport": "udp",
"sipTrunkRole": "provider_trunk",
"source": "custom",
"supportsInbound": true,
"supportsOutbound": true,
"inboundAuthType": "ip_auth",
"outboundAuthType": "registration",
"username": "user",
"password": "secret",
"ipWhitelist": [
"203.0.113.10"
],
"domain": "carrier.example",
"sipProxy": "vpbx-sbc.carrier.example",
"defaultPhoneNumber": "2192192051",
"codecs": [
"pcmu",
"pcma",
"telephone-event"
],
"enabled": true,
"allowOriginationThroughRemotePbx": false,
"registered": true,
"lastRegisteredAt": "2024-01-15T09:00:00.000Z",
"registrationExpiresSeconds": 300,
"registrationRefreshSeconds": 240,
"destinationType": "ai_agent",
"destinationId": "507f1f77bcf86cd799439022",
"trunkNumberCount": 2,
"inboundTrunkNumberCount": 1,
"outboundCallerIdTrunkNumberCount": 2,
"hasInboundTrunkNumbers": true,
"inboundPeers": []
}Changes
No recorded changes to this operation across all 2 revisions of this API.