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 "authentication_method": {
13 "type": "credentials_and_ip",
14 "attributes": {
15 "allowed_sip_ips": [
16 "0.0.0.0/0"
17 ],
18 "tech_prefix": null,
19 "username": "554******",
20 "password": "fqe******"
21 }
22 },
23 "allow_any_did_as_cli": true,
24 "status": "active",
25 "on_cli_mismatch_action": "send_original_cli",
26 "capacity_limit": 100,
27 "threshold_reached": false,
28 "threshold_amount": "10000.0",
29 "media_encryption_mode": "disabled",
30 "default_dst_action": "allow_all",
31 "dst_prefixes": [],
32 "emergency_enable_all": false,
33 "force_symmetric_rtp": false,
34 "rtp_ping": false,
35 "rtp_timeout": 30,
36 "callback_url": null,
37 "created_at": "2025-04-02T10:00:00.000Z",
38 "external_reference_id": null
39 },
40 "relationships": {
41 "dids": {
42 "links": {
43 "self": "https://api.didww.com/v3/voice_out_trunks/03813615-da15-4e3b-8e0a-3ea64b2585de/relationships/dids",
44 "related": "https://api.didww.com/v3/voice_out_trunks/03813615-da15-4e3b-8e0a-3ea64b2585de/dids"
45 }
46 },
47 "emergency_dids": {
48 "links": {
49 "self": "https://api.didww.com/v3/voice_out_trunks/03813615-da15-4e3b-8e0a-3ea64b2585de/relationships/emergency_dids",
50 "related": "https://api.didww.com/v3/voice_out_trunks/03813615-da15-4e3b-8e0a-3ea64b2585de/emergency_dids"
51 }
52 }
53 }
54 },
55 {
56 "id": "cf2e6377-fcaa-4416-8c8e-acd5f31a427f",
57 "type": "voice_out_trunks",
58 "attributes": {
59 "name": "Outbound trunk Name",
60 "allowed_rtp_ips": [
61 "198.51.100.1/32"
62 ],
63 "authentication_method": {
64 "type": "ip_only",
65 "attributes": {
66 "allowed_sip_ips": [
67 "198.51.100.1/32"
68 ],
69 "tech_prefix": null
70 }
71 },
72 "allow_any_did_as_cli": true,
73 "status": "active",
74 "on_cli_mismatch_action": "send_original_cli",
75 "capacity_limit": 100,
76 "threshold_reached": false,
77 "threshold_amount": "10000.0",
78 "media_encryption_mode": "disabled",
79 "default_dst_action": "allow_all",
80 "dst_prefixes": [],
81 "emergency_enable_all": true,
82 "force_symmetric_rtp": false,
83 "rtp_ping": false,
84 "rtp_timeout": 30,
85 "callback_url": null,
86 "created_at": "2025-04-02T10:00:00.000Z",
87 "external_reference_id": null
88 },
89 "relationships": {
90 "dids": {
91 "links": {
92 "self": "https://api.didww.com/v3/voice_out_trunks/cf2e6377-fcaa-4416-8c8e-acd5f31a427f/relationships/dids",
93 "related": "https://api.didww.com/v3/voice_out_trunks/cf2e6377-fcaa-4416-8c8e-acd5f31a427f/dids"
94 }
95 },
96 "emergency_dids": {
97 "links": {
98 "self": "https://api.didww.com/v3/voice_out_trunks/cf2e6377-fcaa-4416-8c8e-acd5f31a427f/relationships/emergency_dids",
99 "related": "https://api.didww.com/v3/voice_out_trunks/cf2e6377-fcaa-4416-8c8e-acd5f31a427f/emergency_dids"
100 }
101 }
102 }
103 },
104 {
105 "id": "14a0b7fb-845a-44d9-a7dc-ac1620f21e42",
106 "type": "voice_out_trunks",
107 "attributes": {
108 "name": "Outbound trunk Name",
109 "allowed_rtp_ips": null,
110 "authentication_method": {
111 "type": "twilio",
112 "attributes": {
113 "twilio_account_sid": "AC39347AF064AF97E1682C3B7332DAAEE6"
114 }
115 },
116 "allow_any_did_as_cli": true,
117 "status": "active",
118 "on_cli_mismatch_action": "send_original_cli",
119 "capacity_limit": 100,
120 "threshold_reached": false,
121 "threshold_amount": "10000.0",
122 "media_encryption_mode": "disabled",
123 "default_dst_action": "allow_all",
124 "dst_prefixes": [],
125 "emergency_enable_all": false,
126 "force_symmetric_rtp": false,
127 "rtp_ping": false,
128 "rtp_timeout": 30,
129 "callback_url": null,
130 "created_at": "2025-04-02T10:00:00.000Z",
131 "external_reference_id": null
132 },
133 "relationships": {
134 "dids": {
135 "links": {
136 "self": "https://api.didww.com/v3/voice_out_trunks/14a0b7fb-845a-44d9-a7dc-ac1620f21e42/relationships/dids",
137 "related": "https://api.didww.com/v3/voice_out_trunks/14a0b7fb-845a-44d9-a7dc-ac1620f21e42/dids"
138 }
139 },
140 "emergency_dids": {
141 "links": {
142 "self": "https://api.didww.com/v3/voice_out_trunks/14a0b7fb-845a-44d9-a7dc-ac1620f21e42/relationships/emergency_dids",
143 "related": "https://api.didww.com/v3/voice_out_trunks/14a0b7fb-845a-44d9-a7dc-ac1620f21e42/emergency_dids"
144 }
145 }
146 }
147 }
148 ],
149 "meta": {
150 "total_records": 3,
151 "api_version": "2026-04-16"
152 },
153 "links": {
154 "first": "https://api.didww.com/v3/voice_out_trunks?page%5Bnumber%5D=1&page%5Bsize%5D=50",
155 "last": "https://api.didww.com/v3/voice_out_trunks?page%5Bnumber%5D=1&page%5Bsize%5D=50"
156 }
157}
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}