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

POSThttps://api.tryvox.io/v1/account/{auth_id}/trunks

Request Parameters

ParameterTypeRequiredDescription
namestringyesFriendly name for the trunk
directionstringnoinbound, outbound, or both. Default both.
concurrent_calls_limitintegernoMaximum concurrent calls on this trunk. Default 10.
cps_limitintegernoMaximum new calls per second on this trunk. Default 2.
descriptionstringnoFree-text description
inbound_destinationstringnoWhere inbound calls on this trunk are sent
transportstringnoudp, tcp, tls, or wss. Default udp.
securebooleannoAccept IP-ACL traffic only over TLS. Default false.
recordingbooleannoRecord calls on this trunk. Default false.
enable_transcriptionbooleannoTranscribe recordings. Requires recording: true. Default false.
pii_redaction_enabledbooleannoRedact PII from transcripts. Requires enable_transcription: true. Default false.
webhook_urlstringnoURL for this trunk's call events
webhook_methodstringnoPOST 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

GEThttps://api.tryvox.io/v1/account/{auth_id}/trunks

Paginated with page and per_page; optional filters status, direction, and search. Returns data and meta.

Get Trunk

GEThttps://api.tryvox.io/v1/account/{auth_id}/trunks/{trunk_id}

Update Trunk

PUThttps://api.tryvox.io/v1/account/{auth_id}/trunks/{trunk_id}

Partial update: send only the fields to change. Accepts every create field plus:

ParameterTypeDescription
statusstringactive or suspended
credential_uuidstringCredential to attach to the trunk
ip_acl_uuidstringIP ACL entry to attach to the trunk
primary_uri_uuidstringPrimary origination URI
fallback_uri_uuidstringFallback 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

DELETEhttps://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

GEThttps://api.tryvox.io/v1/account/{auth_id}/trunks/{trunk_id}/readiness

Reports 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

POSThttps://api.tryvox.io/v1/account/{auth_id}/trunks/{trunk_id}/test

Runs 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}/usage

linked-numbers lists the phone numbers linked to the trunk. usage returns {"numbers": [...]} — the numbers currently assigned to it.

Errors

StatusCodeDescription
400VALIDATION_FAILEDMissing name, invalid direction/transport/webhook_method, transcription without recording, PII redaction without transcription, invalid trunk ID
403KYC_REQUIREDThe account's KYC is not approved
404NOT_FOUNDNo trunk with this ID on your account
409TRUNK_IN_USEDelete refused because numbers are assigned

On this page