cURL
curl --request PUT \ --url https://api.voice-mate.com/v1/sip-trunks/{sid} \ --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" } }
Update an externally managed SIP trunk.
Bearer auth header. Pass with value 'Bearer {api_key}'. Api key can be found in account Settings -> API Keys page
SIP trunk identifier
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 updated
success
error
Show child attributes