Skip to main content
POST
/
sip-trunks
Create a SIP trunk
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",
    "sip_username": "myuser",
    "sip_password": "mypassword",
    "created_at": "2025-03-01T23:52:56.297986Z",
    "updated_at": "2025-05-03T10:43:50.326335Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer auth header. Pass with value 'Bearer {api_key}'. Api key can be found in account Settings -> API Keys page

Body

application/json
name
string
required

Name for the SIP trunk

termination_uri
string
required

URI used for SIP trunk termination (e.g., the address calls are sent to)

sip_username
string

Optional SIP username for authentication

sip_password
string

Optional SIP password for authentication

Response

SIP trunk created

status
enum<string>
required
Available options:
success,
error
sip_trunk
object
required