Organizations
Create a SIP carrier
POST
/
organization
/
sip
curl --request POST \
--url https://api.voxia.ai/organization/sip \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"register_username": "<string>",
"register_password": "<string>",
"requires_register": false,
"register_sip_realm": "<string>",
"register_from_user": "<string>",
"register_from_domain": "<string>",
"register_public_ip_in_contact": true,
"tech_prefix": "<string>",
"diversion": "<string>",
"e164_leading_plus": false,
"gateways": [
{
"outbound": false,
"inbound": false,
"ipv4": "<string>",
"netmask": 32,
"port": 5060,
"protocol": "udp",
"send_options_ping": true,
"use_sips_scheme": true,
"pad_crypto": true,
"sip_gateway_sid": "<string>"
}
],
"phoneNumbers": [
{
"phone_number_sid": "<string>",
"phone_number": "<string>"
}
],
"outbound_sip_proxy": "<string>",
"updatedBy": "<string>"
}'
{
"id": "<string>"
}
Authorizations
Headers
Optional sub organization ID. Must belong to your main organization API key.
Body
application/json
Response
201
application/json
SIP carrier Created successfully.
The response is of type object
.
curl --request POST \
--url https://api.voxia.ai/organization/sip \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"register_username": "<string>",
"register_password": "<string>",
"requires_register": false,
"register_sip_realm": "<string>",
"register_from_user": "<string>",
"register_from_domain": "<string>",
"register_public_ip_in_contact": true,
"tech_prefix": "<string>",
"diversion": "<string>",
"e164_leading_plus": false,
"gateways": [
{
"outbound": false,
"inbound": false,
"ipv4": "<string>",
"netmask": 32,
"port": 5060,
"protocol": "udp",
"send_options_ping": true,
"use_sips_scheme": true,
"pad_crypto": true,
"sip_gateway_sid": "<string>"
}
],
"phoneNumbers": [
{
"phone_number_sid": "<string>",
"phone_number": "<string>"
}
],
"outbound_sip_proxy": "<string>",
"updatedBy": "<string>"
}'
{
"id": "<string>"
}