Trunks
Create a Trunk
Provision a new Vobiz SIP trunk with concurrent-call limits, CPS caps, TLS/SRTP, credentials, IP ACLs, and origination URIs - all in a single API call.
POST
Create a trunk
Authentication required:
X-Auth-ID- Your account Auth IDX-Auth-Token- Your account Auth TokenContent-Type: application/json
Auto-Generated Domain: Upon creation, Vobiz automatically generates a unique SIP domain for your trunk in the format:
trunk_id.sip.vobiz.ai. This domain is used for routing inbound calls to your trunk.Request Parameters
Only three fields are required to create a trunk. The rest of the trunk’s configuration - transport, TLS/SRTP, recording, attached credentials, IP ACLs, and origination URIs - is applied afterwards through the dedicated endpoints or the Console.| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Descriptive name for the trunk. Maximum 255 characters. |
trunk_type | string | Yes | Trunk direction. One of INBOUND or OUTBOUND (uppercase). Determines how the trunk routes traffic. |
max_concurrent_calls | integer | Yes | Maximum number of simultaneous calls. Returned on the trunk object as concurrent_calls_limit. |
Defaults applied at creation. New trunks come back with
cps_limit: 2, secure: false, transport: udp, and trunk_status: active. The trunk_domain is auto-generated as {trunk_id}.sip.vobiz.ai. Tune limits later with Update a Trunk, and attach auth and routing with Credentials, IP ACLs, and Origination URIs.Examples
Response
Returns the complete trunk object, including the auto-generatedtrunk_id UUID and timestamps.
Response - 201 Created
Authorizations
Your Vobiz account Auth ID
Your Vobiz account Auth Token
Path Parameters
Your account Auth ID
Example:
"MA_XXXXXX"
Body
application/json
Response
Success