Use this method to create a new SIP trunk on the account.
This endpoint requires authentication.
POST /trunks
HTTP Status Code | Error Description | Exception Class |
---|---|---|
403 | Request failed. The feature is disabled for the account. |
|
curl -X POST \
--url 'https://api.wavix.com/v1/trunks?appid=your-API-key' \
-H 'Accept: application/json' \
-H 'Content-type: application/json' \
--data-raw '{
"label": "My trunk",
"password": "4r=h;EaCB85QNtr2",
"callerid": "13132847320",
"ip_restrict": false,
"didinfo_enabled": true,
"call_restrict": false,
"cost_limit": false,
"channels_restrict": false,
"rewrite_enabled": true,
"passthrough": false,
"host_request": {}
}'