SIP Trunking
Create a Trunk
Create and manage SIP trunks for your account.
Create a SIP trunk to connect your voice infrastructure to TryVox. Trunk requests require approved KYC.
Create Trunk
https://api.tryvox.io/v1/account/{auth_id}/trunksRequest Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Friendly name for the trunk |
| direction | string | no | inbound, outbound, or both. Default both. |
| concurrent_calls_limit | integer | no | Maximum concurrent calls on this trunk. Default 10. |
| cps_limit | integer | no | Maximum new calls per second on this trunk. Default 2. |
| description | string | no | Free-text description |
| inbound_destination | string | no | Where inbound calls on this trunk are sent |
| transport | string | no | udp, tcp, tls, or wss. Default udp. |
| secure | boolean | no | Accept IP-ACL traffic only over TLS. Default false. |
| recording | boolean | no | Record calls on this trunk. Default false. |
| enable_transcription | boolean | no | Transcribe recordings. Requires recording: true. Default false. |
| pii_redaction_enabled | boolean | no | Redact PII from transcripts. Requires enable_transcription: true. Default false. |
| webhook_url | string | no | URL for this trunk's call events |
| webhook_method | string | no | POST or GET. Default POST. |
Example Request
curl -X POST https://api.tryvox.io/v1/account/$TRYVOX_AUTH_ID/trunks \
-u $TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN \
-H "Content-Type: application/json" \
-d '{
"name": "Production Trunk",
"direction": "both",
"concurrent_calls_limit": 20,
"cps_limit": 5,
"transport": "udp"
}'Response
201 Created:
{
"data": {
"id": "4a5b6c7d-8e9f-4a1b-9c2d-3e4f5a6b7c8d",
"account_id": "TJab12cd34",
"name": "Production Trunk",
"sip_domain": "e91f03b2.sip.tryvox.io",
"status": "active",
"secure": false,
"direction": "both",
"concurrent_calls_limit": 20,
"cps_limit": 5,
"description": "",
"transport": "udp",
"recording": false,
"enable_transcription": false,
"pii_redaction_enabled": false,
"webhook_method": "POST",
"created_at": "2026-10-30T10:30:00Z",
"updated_at": "2026-10-30T10:30:00Z"
}
}The response also carries inbound_destination, webhook_url, credential_uuid, ip_acl_uuid, primary_uri_uuid, and fallback_uri_uuid when they are set.
Other Trunk Operations
List Trunks
https://api.tryvox.io/v1/account/{auth_id}/trunksPaginated with page and per_page; optional filters status, direction, and search. Returns data and meta.
Get Trunk
https://api.tryvox.io/v1/account/{auth_id}/trunks/{trunk_id}Update Trunk
https://api.tryvox.io/v1/account/{auth_id}/trunks/{trunk_id}Partial update: send only the fields to change. Accepts every create field plus:
| Parameter | Type | Description |
|---|---|---|
| status | string | active or suspended |
| credential_uuid | string | Credential to attach to the trunk |
| ip_acl_uuid | string | IP ACL entry to attach to the trunk |
| primary_uri_uuid | string | Primary origination URI |
| fallback_uri_uuid | string | Fallback origination URI |
curl -X PUT https://api.tryvox.io/v1/account/$TRYVOX_AUTH_ID/trunks/4a5b6c7d-8e9f-4a1b-9c2d-3e4f5a6b7c8d \
-u $TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Trunk Name",
"concurrent_calls_limit": 50
}'Delete Trunk
https://api.tryvox.io/v1/account/{auth_id}/trunks/{trunk_id}Returns 204 No Content. If numbers are still assigned to the trunk, the request is refused with 409 TRUNK_IN_USE and the list of numbers; pass ?unassign_all=true to detach them and delete.
Readiness
https://api.tryvox.io/v1/account/{auth_id}/trunks/{trunk_id}/readinessReports whether the trunk is ready to carry calls: status, progress, activation_eligible, the applicable_steps, any missing_required steps, recommendations, and the next_action to take. Each step has an id, label, description, completed, required, and level.
Test Trunk
https://api.tryvox.io/v1/account/{auth_id}/trunks/{trunk_id}/testRuns live checks against the SIP edge — for example whether the trunk is active, the SIP edge is reachable, and inbound authentication is provisioned. Returns:
{
"data": {
"trunk_id": "4a5b6c7d-8e9f-4a1b-9c2d-3e4f5a6b7c8d",
"status": "passed",
"summary": "every check we can perform from our side passed; see not_verified for what this does not cover",
"checks": [
{ "name": "trunk_active", "status": "pass", "detail": "trunk is active" },
{ "name": "sip_edge_reachable", "status": "pass", "detail": "SIP edge is up and answering" }
],
"not_verified": [
"end-to-end call delivery: these checks confirm the trunk is provisioned on our SIP edge, they do not place a call through it",
"reachability of your gateway from our network: we cannot confirm your host accepts SIP from us without sending a call"
]
}
}The report status is passed, degraded, or failed. Checks cover trunk status, SIP edge reachability, inbound authentication, IP ACLs, credentials, and origination URIs; each check's status is pass, warn, fail, or skip. not_verified lists what the checks could not establish — a passing report does not prove your PBX can reach TryVox.
Linked Numbers and Usage
GET https://api.tryvox.io/v1/account/{auth_id}/trunks/{trunk_id}/linked-numbers
GET https://api.tryvox.io/v1/account/{auth_id}/trunks/{trunk_id}/usagelinked-numbers lists the phone numbers linked to the trunk. usage returns {"numbers": [...]} — the numbers currently assigned to it.
Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_FAILED | Missing name, invalid direction/transport/webhook_method, transcription without recording, PII redaction without transcription, invalid trunk ID |
| 403 | KYC_REQUIRED | The account's KYC is not approved |
| 404 | NOT_FOUND | No trunk with this ID on your account |
| 409 | TRUNK_IN_USE | Delete refused because numbers are assigned |