Loading
Cart Total
$0.00
-
Your shopping cart is empty
Loading
Hello! Log in Your Account
New customer? Start here
SIP Trunks
Storefronts
Customer Management
VoIP Bundle (Subscriptions)
SIP Account Management
Audio Management
Phone Numbers & Call Routing
Phone Calls & CDR Data
VoIP Phone Short Code
eFax Management
Voicemails & Mailboxes
Caller ID
SIP Trunks
Wallboard Statistics
VoIP Phone Provisioning
Call Queueing
Phone Books
VoIP Phone Speed Dial
Text (SMS) Messaging
Trunk are used to send calls to and from an external PBX
Become a ResellerFilter:
* You will be charged every time this command is run.
Gets a list of all of the active trunks on an account
Back to top
Request Details
Response Details
This command has no URL/Query String parameters
200 Response
{
"result" : [
{
"auth" : [
{
"created_on" : "2023-06-04",
"ip" : "255.255.255.255",
"password" : "secret",
"type" : "ip",
"updated_on" : "2023-06-04",
"username" : "pete_plumber1",
"uuid" : "31347d42-00bd-44a5-9b5c-20dc4197a2f6"
}
],
"created_on" : "2023-06-04",
"domain" : "example.com",
"name" : "Pete's Trunk",
"port" : 5060,
"transport" : "udp",
"updated_on" : "2023-06-04",
"user" : "%e164",
"uuid" : "31347d42-00bd-44a5-9b5c-20dc4197a2f6"
}
],
"status_code" : 200,
"status_message" : "OK"
}
Gets the details for a specific trunk on an account
Back to top
Request Details
Response Details
URL and Query String Parameters
Name
Type
Required
uuid
String
True
The UUID of the Trunk to be queried
200 Response
{
"result" : {
"auth" : [
{
"created_on" : "2023-06-04",
"ip" : "255.255.255.255",
"password" : "secret",
"type" : "ip",
"updated_on" : "2023-06-04",
"username" : "pete_plumber1",
"uuid" : "31347d42-00bd-44a5-9b5c-20dc4197a2f6"
}
],
"created_on" : "2023-06-04",
"domain" : "example.com",
"name" : "Pete's Trunk",
"port" : 5060,
"transport" : "udp",
"updated_on" : "2023-06-04",
"user" : "%e164",
"uuid" : "31347d42-00bd-44a5-9b5c-20dc4197a2f6"
},
"status_code" : 200,
"status_message" : "OK"
}
404 Response
{
"result" : {},
"status_code" : 404,
"status_message" : "Not Found"
}
Creates a new trunk on an account
Back to top
Request Details
Response Details
This command has no URL/Query String parameters
POST body
Name
Type
Required
domain
String
True
The domain to which we will send calls to this Trunk
name
String
True
The name of this Trunk
port
Integer
True
The port we will use to send calls to this Trunk
transport
String
True
The transport protocol used for this Trunk. One of 'udp', 'tcp', or 'tls'.
user
String
True
The username we will use to send calls to this trunk, or '%e164' to have this replaced with the dialled number
ip
String
True
If type is 'ip', this is the IP Address we will use to authenticate incoming calls.
password
String
True
If type is 'sipuser', this is the SIP Password we will use to authenticate incoming calls.
type
String
True
The type of authentication method. Either 'ip' or 'sipuser'.
username
String
True
If type is 'sipuser', this is the SIP Username we will use to authenticate incoming calls.
JSON all-fields example:
{
"domain" : "example.com",
"name" : "Pete's Trunk",
"port" : 5060,
"transport" : "udp",
"user" : "%e164"
}
201 Response
{
"result" : {
"auth" : [
{
"created_on" : "2023-06-04",
"ip" : "255.255.255.255",
"password" : "secret",
"type" : "ip",
"username" : "pete_plumber1",
"uuid" : "31347d42-00bd-44a5-9b5c-20dc4197a2f6"
}
],
"created_on" : "2023-06-04",
"domain" : "example.com",
"name" : "Pete's Trunk",
"port" : 5060,
"transport" : "udp",
"user" : "%e164",
"uuid" : "31347d42-00bd-44a5-9b5c-20dc4197a2f6"
},
"status_code" : 201,
"status_message" : "Created"
}
400 Response
{
"result" : {},
"status_code" : 400,
"status_message" : "Bad Request"
}
Updates the specified trunk
Back to top
Request Details
Response Details
URL and Query String Parameters
Name
Type
Required
uuid
String
True
The UUID of the Trunk to be updated
PUT body
Name
Type
Required
domain
String
True
The domain to which we will send calls to this Trunk
name
String
True
The name of this Trunk
port
Integer
True
The port we will use to send calls to this Trunk
transport
String
True
The transport protocol used for this Trunk. One of 'udp', 'tcp', or 'tls'.
user
String
True
The username we will use to send calls to this trunk, or '%e164' to have this replaced with the dialled number
ip
String
True
If type is 'ip', this is the IP Address we will use to authenticate incoming calls.
password
String
True
If type is 'sipuser', this is the SIP Password we will use to authenticate incoming calls.
type
String
True
The type of authentication method. Either 'ip' or 'sipuser'.
username
String
True
If type is 'sipuser', this is the SIP Username we will use to authenticate incoming calls.
JSON all-fields example:
{
"domain" : "example.com",
"name" : "Pete's Trunk",
"port" : 5060,
"transport" : "udp",
"user" : "%e164"
}
200 Response
{
"result" : {
"auth" : [
{
"created_on" : "2023-06-04",
"ip" : "255.255.255.255",
"password" : "secret",
"type" : "ip",
"updated_on" : "2023-06-04",
"username" : "pete_plumber1",
"uuid" : "31347d42-00bd-44a5-9b5c-20dc4197a2f6"
}
],
"created_on" : "2023-06-04",
"domain" : "example.com",
"name" : "Pete's Trunk",
"port" : 5060,
"transport" : "udp",
"updated_on" : "2023-06-04",
"user" : "%e164",
"uuid" : "31347d42-00bd-44a5-9b5c-20dc4197a2f6"
},
"status_code" : 200,
"status_message" : "OK"
}
400 Response
{
"result" : {},
"status_code" : 400,
"status_message" : "Bad Request"
}
404 Response
{
"result" : {},
"status_code" : 404,
"status_message" : "Not Found"
}
Deletes the specified trunk
Back to top
Request Details
Response Details
URL and Query String Parameters
Name
Type
Required
uuid
String
True
The UUID of the Trunk to be deleted
204 Response
{
"result" : {},
"status_code" : 204,
"status_message" : "No Content"
}
404 Response
{
"result" : {},
"status_code" : 404,
"status_message" : "Not Found"
}