Create SIP Trunk
Create SIP Trunk
Create a new SIP trunk with credentials, address, and proxy settings
POST
Create SIP Trunk
This endpoint creates a new SIP trunk. The platform automatically provisions inbound and outbound trunks on the voice infrastructure using the provided credentials.
Body Parameters
The type of SIP trunk:
extension for a SIP extension, or number for a phone number (DID). This determines the expected format of the phone_number field.The SIP extension (1-15 characters, e.g.
1000) when sip_trunk_type is extension, or a phone number in E.164 format (e.g. +14155551234) when sip_trunk_type is number.Username for SIP authentication (3-128 characters)
Password for SIP authentication (minimum 3 characters)
The SIP server address without port (e.g.
sip.provider.com)The outbound calling number format:
+e164- International with+prefix (e.g.+12025550123)e164- International without+prefix (e.g.12025550123)national- National format without country code (e.g.0741926265)
How inbound calls are authenticated:
auth- Uses the same SIP username and password configured for outboundip- Whitelists specific IP addresses (requiresallowed_inbound_ips)
Array of IP addresses allowed to send inbound calls. Required when
inbound_authorization_type is ip. Must contain at least one valid IP address.ISO 3166-2 country code where the SIP trunk is located (e.g.
US, GB, DE). When sip_trunk_type is number, the country is auto-detected from the phone number if possible.Route outbound calls through a fixed IP address. Default:
false. Only enable this if your SIP provider requires IP-based authentication for outbound traffic.Response
Success message
The created SIP trunk object (same fields as Get SIP trunk)
What happens after creation
When you create a SIP trunk, the platform automatically:- Provisions an inbound trunk on the voice infrastructure - using either username/password or IP-based authentication depending on your
inbound_authorization_typesetting - Provisions an outbound trunk - using the SIP address and credentials you provided, optionally through the outbound proxy
500 error is returned.
Next steps
After creating a SIP trunk, assign it to an AI assistant:- Create Assistant - Use the
phone_number_idparameter - Update Assistant - Change the phone number on an existing assistant

