Get Outbound Trunks#
Returns the collection of outbound trunks.
Request#
HTTP Method: GET
URI Path: /v3/voice_out_trunks
Note
For all returned data attributes, see Outbound Trunk Object.
URI Query Parameters#
Name |
Type |
Is Required? |
Description |
|---|---|---|---|
include |
|
No |
|
filter[<filter_name>] |
|
No |
|
fields[voice_out_trunks] |
|
No |
|
sort |
|
No |
|
pagination |
|
No |
Filters#
Filter Name |
Type |
Allow Blank |
Allow Array |
Filters by: |
|---|---|---|---|---|
name |
|
Yes |
Yes |
The trunk |
name_contains |
|
Yes |
Yes |
The |
external_reference_id |
|
No |
No |
The |
on_cli_mismatch_action |
|
Yes |
Yes |
The |
allow_any_did_as_cli |
|
No |
No |
The |
status |
|
No |
No |
The |
threshold_reached |
|
No |
No |
The |
default_dst_action |
|
No |
No |
The |
media_encryption_mode |
|
No |
No |
The |
authentication_method.type |
|
No |
No |
The |
emergency_enable_all |
|
No |
No |
The |
Sorting#
Value |
Sorts by: |
|---|---|
name |
The |
created_at |
The |
allow_any_did_as_cli |
The |
threshold_reached |
The |
Includes#
Value |
Description |
|---|---|
dids |
|
emergency_dids |
Emergency DID relationship data. |
Object Relationships#
Value |
Description |
|---|---|
dids |
|
emergency_dids |
Emergency DID relationship data. |
Example#
http
1GET /v3/voice_out_trunks HTTP/1.1
2Host: api.didww.com
3Content-Type: application/vnd.api+json
4Accept: application/vnd.api+json
5Api-Key: [API token]
curl
1curl -i -X GET https://api.didww.com/v3/voice_out_trunks -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json"
response
1HTTP/1.1 200 OK
2Content-Type: application/vnd.api+json
3
4{
5 "data": [
6 {
7 "id": "03813615-da15-4e3b-8e0a-3ea64b2585de",
8 "type": "voice_out_trunks",
9 "attributes": {
10 "name": "Outbound trunk Name",
11 "allowed_rtp_ips": [
12 "0.0.0.0/0"
13 ],
14 "authentication_method": {
15 "type": "credentials_and_ip",
16 "attributes": {
17 "allowed_sip_ips": [
18 "0.0.0.0/0"
19 ],
20 "tech_prefix": null,
21 "username": "554******",
22 "password": "fqe******"
23 }
24 },
25 "allow_any_did_as_cli": true,
26 "status": "active",
27 "on_cli_mismatch_action": "send_original_cli",
28 "capacity_limit": 100,
29 "threshold_reached": false,
30 "threshold_amount": "10000.0",
31 "media_encryption_mode": "disabled",
32 "default_dst_action": "allow_all",
33 "dst_prefixes": [],
34 "emergency_enable_all": false,
35 "force_symmetric_rtp": false,
36 "rtp_ping": false,
37 "rtp_timeout": 30,
38 "callback_url": null,
39 "created_at": "2025-04-02T10:00:00.000Z",
40 "external_reference_id": null
41 },
42 "relationships": {
43 "dids": {
44 "links": {
45 "self": "https://api.didww.com/v3/voice_out_trunks/03813615-da15-4e3b-8e0a-3ea64b2585de/relationships/dids",
46 "related": "https://api.didww.com/v3/voice_out_trunks/03813615-da15-4e3b-8e0a-3ea64b2585de/dids"
47 }
48 },
49 "emergency_dids": {
50 "links": {
51 "self": "https://api.didww.com/v3/voice_out_trunks/03813615-da15-4e3b-8e0a-3ea64b2585de/relationships/emergency_dids",
52 "related": "https://api.didww.com/v3/voice_out_trunks/03813615-da15-4e3b-8e0a-3ea64b2585de/emergency_dids"
53 }
54 }
55 }
56 },
57 {
58 "id": "cf2e6377-fcaa-4416-8c8e-acd5f31a427f",
59 "type": "voice_out_trunks",
60 "attributes": {
61 "name": "Outbound trunk Name",
62 "allowed_rtp_ips": [
63 "198.51.100.1/32"
64 ],
65 "authentication_method": {
66 "type": "ip_only",
67 "attributes": {
68 "allowed_sip_ips": [
69 "198.51.100.1/32"
70 ],
71 "tech_prefix": null
72 }
73 },
74 "allow_any_did_as_cli": true,
75 "status": "active",
76 "on_cli_mismatch_action": "send_original_cli",
77 "capacity_limit": 100,
78 "threshold_reached": false,
79 "threshold_amount": "10000.0",
80 "media_encryption_mode": "disabled",
81 "default_dst_action": "allow_all",
82 "dst_prefixes": [],
83 "emergency_enable_all": true,
84 "force_symmetric_rtp": false,
85 "rtp_ping": false,
86 "rtp_timeout": 30,
87 "callback_url": null,
88 "created_at": "2025-04-02T10:00:00.000Z",
89 "external_reference_id": null
90 },
91 "relationships": {
92 "dids": {
93 "links": {
94 "self": "https://api.didww.com/v3/voice_out_trunks/cf2e6377-fcaa-4416-8c8e-acd5f31a427f/relationships/dids",
95 "related": "https://api.didww.com/v3/voice_out_trunks/cf2e6377-fcaa-4416-8c8e-acd5f31a427f/dids"
96 }
97 },
98 "emergency_dids": {
99 "links": {
100 "self": "https://api.didww.com/v3/voice_out_trunks/cf2e6377-fcaa-4416-8c8e-acd5f31a427f/relationships/emergency_dids",
101 "related": "https://api.didww.com/v3/voice_out_trunks/cf2e6377-fcaa-4416-8c8e-acd5f31a427f/emergency_dids"
102 }
103 }
104 }
105 },
106 {
107 "id": "14a0b7fb-845a-44d9-a7dc-ac1620f21e42",
108 "type": "voice_out_trunks",
109 "attributes": {
110 "name": "Outbound trunk Name",
111 "allowed_rtp_ips": null,
112 "authentication_method": {
113 "type": "twilio",
114 "attributes": {
115 "twilio_account_sid": "AC39347AF064AF97E1682C3B7332DAAEE6"
116 }
117 },
118 "allow_any_did_as_cli": true,
119 "status": "active",
120 "on_cli_mismatch_action": "send_original_cli",
121 "capacity_limit": 100,
122 "threshold_reached": false,
123 "threshold_amount": "10000.0",
124 "media_encryption_mode": "disabled",
125 "default_dst_action": "allow_all",
126 "dst_prefixes": [],
127 "emergency_enable_all": false,
128 "force_symmetric_rtp": false,
129 "rtp_ping": false,
130 "rtp_timeout": 30,
131 "callback_url": null,
132 "created_at": "2025-04-02T10:00:00.000Z",
133 "external_reference_id": null
134 },
135 "relationships": {
136 "dids": {
137 "links": {
138 "self": "https://api.didww.com/v3/voice_out_trunks/14a0b7fb-845a-44d9-a7dc-ac1620f21e42/relationships/dids",
139 "related": "https://api.didww.com/v3/voice_out_trunks/14a0b7fb-845a-44d9-a7dc-ac1620f21e42/dids"
140 }
141 },
142 "emergency_dids": {
143 "links": {
144 "self": "https://api.didww.com/v3/voice_out_trunks/14a0b7fb-845a-44d9-a7dc-ac1620f21e42/relationships/emergency_dids",
145 "related": "https://api.didww.com/v3/voice_out_trunks/14a0b7fb-845a-44d9-a7dc-ac1620f21e42/emergency_dids"
146 }
147 }
148 }
149 }
150 ],
151 "meta": {
152 "total_records": 3,
153 "api_version": "2026-04-16"
154 },
155 "links": {
156 "first": "https://api.didww.com/v3/voice_out_trunks?page%5Bnumber%5D=1&page%5Bsize%5D=50",
157 "last": "https://api.didww.com/v3/voice_out_trunks?page%5Bnumber%5D=1&page%5Bsize%5D=50"
158 }
159}
http
1GET /v3/voice_out_trunks?include=emergency_dids HTTP/1.1
2Host: api.didww.com
3Content-Type: application/vnd.api+json
4Accept: application/vnd.api+json
5Api-Key: [API token]
curl
1curl -i -X GET 'https://api.didww.com/v3/voice_out_trunks?include=emergency_dids' -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json"
response
1HTTP/1.1 200 OK
2Content-Type: application/vnd.api+json
3
4{
5 "data": [
6 {
7 "id": "91f7bcb4-3278-433b-9de1-5e6f4131fd4d",
8 "type": "voice_out_trunks",
9 "attributes": {
10 "name": "Outbound trunk with emergency DID",
11 "allowed_rtp_ips": [
12 "198.51.100.0/24"
13 ],
14 "authentication_method": {
15 "type": "credentials_and_ip",
16 "attributes": {
17 "allowed_sip_ips": [
18 "198.51.100.0/24"
19 ],
20 "tech_prefix": null,
21 "username": "9q2******",
22 "password": "6zm******"
23 }
24 },
25 "allow_any_did_as_cli": true,
26 "status": "active",
27 "on_cli_mismatch_action": "send_original_cli",
28 "capacity_limit": 75,
29 "threshold_reached": false,
30 "threshold_amount": "3000.0",
31 "media_encryption_mode": "disabled",
32 "default_dst_action": "allow_all",
33 "dst_prefixes": [],
34 "emergency_enable_all": false,
35 "force_symmetric_rtp": false,
36 "rtp_ping": false,
37 "rtp_timeout": 30,
38 "callback_url": null,
39 "created_at": "2025-04-02T10:00:00.000Z",
40 "external_reference_id": null
41 },
42 "relationships": {
43 "dids": {
44 "links": {
45 "self": "https://api.didww.com/v3/voice_out_trunks/91f7bcb4-3278-433b-9de1-5e6f4131fd4d/relationships/dids",
46 "related": "https://api.didww.com/v3/voice_out_trunks/91f7bcb4-3278-433b-9de1-5e6f4131fd4d/dids"
47 }
48 },
49 "emergency_dids": {
50 "data": [
51 {
52 "type": "dids",
53 "id": "0b5d4ca6-7002-4f19-a678-f5be95538e9b"
54 }
55 ]
56 }
57 }
58 }
59 ],
60 "included": [
61 {
62 "id": "0b5d4ca6-7002-4f19-a678-f5be95538e9b",
63 "type": "dids",
64 "attributes": {
65 "number": "12125550123",
66 "emergency_enabled": true
67 }
68 }
69 ],
70 "meta": {
71 "total_records": 1,
72 "api_version": "2026-04-16"
73 }
74}