cURL
curl --request POST \ --url https://api.voice-mate.com/v1/sip-trunks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "termination_uri": "<string>", "sip_username": "<string>", "sip_password": "<string>" } '
{ "status": "success", "sip_trunk": { "sid": "sip_1d31b6c1-dcea-425a-a3e1-3a9227a95381", "name": "production", "termination_uri": "my-company.pstn.twilio.com", "created_at": "2025-03-01T23:52:56.297986Z", "updated_at": "2025-05-03T10:43:50.326335Z", "sip_username": "myuser", "sip_password": "mypassword" } }
Create a new externally managed SIP trunk.
Bearer auth header. Pass with value 'Bearer {api_key}'. Api key can be found in account Settings -> API Keys page
Name for the SIP trunk
URI used for SIP trunk termination (e.g., the address calls are sent to)
Optional SIP username for authentication
Optional SIP password for authentication
SIP trunk created
success
error
Show child attributes