Get Inbound Trunk#
Returns inbound trunks owned by the account. Several type of trunks can be retrieved: SIP, PSTN.
Request#
HTTP Method: GET
URI Path: /v3/voice_in_trunks/
Note
For all returned data attributes, see Inbound Trunk Object.
URI Query Parameters#
Name |
Type |
Is Required? |
Description |
|---|---|---|---|
id |
|
Yes |
Unique ID identifier of the Trunk. |
sort |
|
No |
Includes#
Name |
Description |
|---|---|
voice_in_trunk_group |
|
pop |
Object Relationships#
Value |
Description |
|---|---|
voice_in_trunk_group |
|
pop |
Examples#
http
1GET /v3/voice_in_trunks/df78e081-b7d1-4769-80ce-f349af4f612e 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_in_trunks/df78e081-b7d1-4769-80ce-f349af4f612e -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 "id": "df78e081-b7d1-4769-80ce-f349af4f612e",
7 "type": "voice_in_trunks",
8 "attributes": {
9 "priority": 1,
10 "capacity_limit": 10,
11 "weight": 2,
12 "name": "Office",
13 "cli_format": "e164",
14 "cli_prefix": "+",
15 "description": null,
16 "ringing_timeout": 30,
17 "created_at": "2017-06-25T08:21:41.795Z",
18 "external_reference_id": null,
19 "configuration": {
20 "type": "sip_configurations",
21 "attributes": {
22 "username": "username",
23 "host": "example.com",
24 "port": null,
25 "codec_ids": [
26 9,
27 7
28 ],
29 "rx_dtmf_format_id": 1,
30 "tx_dtmf_format_id": 1,
31 "resolve_ruri": true,
32 "auth_enabled": true,
33 "auth_user": "username",
34 "auth_password": "password",
35 "auth_from_user": "Office",
36 "auth_from_domain": "example.com",
37 "sst_enabled": false,
38 "sst_min_timer": 600,
39 "sst_max_timer": 900,
40 "sst_accept_501": true,
41 "sip_timer_b": 8000,
42 "dns_srv_failover_timer": 2000,
43 "rtp_ping": false,
44 "rtp_timeout": 30,
45 "force_symmetric_rtp": false,
46 "symmetric_rtp_ignore_rtcp": false,
47 "rerouting_disconnect_code_ids": [
48 58,
49 59,
50 1505
51 ],
52 "sst_session_expires": null,
53 "sst_refresh_method_id": 1,
54 "transport_protocol_id": 1,
55 "max_transfers": 5,
56 "max_30x_redirects": 0,
57 "media_encryption_mode": "disabled",
58 "stir_shaken_mode": "disabled",
59 "allowed_rtp_ips": null,
60 "network_protocol_priority": "any",
61 "enabled_sip_registration": true,
62 "use_did_in_ruri": true,
63 "diversion_relay_policy": "as_is",
64 "diversion_inject_mode": "did_number",
65 "cnam_lookup": true
66 }
67 }
68 },
69 "relationships": {
70 "voice_in_trunk_group": {
71 "links": {
72 "self": "https://api.didww.com/v3/voice_in_trunks/df78e081-b7d1-4769-80ce-f349af4f612e/relationships/voice_in_trunk_group",
73 "related": "https://api.didww.com/v3/voice_in_trunks/df78e081-b7d1-4769-80ce-f349af4f612e/voice_in_trunk_group"
74 }
75 },
76 "pop": {
77 "links": {
78 "self": "https://api.didww.com/v3/voice_in_trunks/df78e081-b7d1-4769-80ce-f349af4f612e/relationships/pop",
79 "related": "https://api.didww.com/v3/voice_in_trunks/df78e081-b7d1-4769-80ce-f349af4f612e/pop"
80 }
81 }
82 }
83 },
84 "meta": {
85 "api_version": "2026-04-16"
86 }
87}
http
1GET /v3/voice_in_trunks/84746865-b1c0-414d-86c7-62c85c22fd69 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_in_trunks/84746865-b1c0-414d-86c7-62c85c22fd69 -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 "id": "84746865-b1c0-414d-86c7-62c85c22fd69",
7 "type": "voice_in_trunks",
8 "attributes": {
9 "priority": 1,
10 "capacity_limit": 5,
11 "weight": 65535,
12 "name": "Office Mobile",
13 "cli_format": "e164",
14 "cli_prefix": null,
15 "description": null,
16 "ringing_timeout": null,
17 "created_at": "2017-06-25T08:21:41.795Z",
18 "external_reference_id": null,
19 "configuration": {
20 "type": "pstn_configurations",
21 "attributes": {
22 "dst": "1xxxxxxxxx"
23 }
24 }
25 },
26 "relationships": {
27 "voice_in_trunk_group": {
28 "links": {
29 "self": "https://api.didww.com/v3/voice_in_trunks/84746865-b1c0-414d-86c7-62c85c22fd69/relationships/voice_in_trunk_group",
30 "related": "https://api.didww.com/v3/voice_in_trunks/84746865-b1c0-414d-86c7-62c85c22fd69/voice_in_trunk_group"
31 }
32 },
33 "pop": {
34 "links": {
35 "self": "https://api.didww.com/v3/voice_in_trunks/84746865-b1c0-414d-86c7-62c85c22fd69/relationships/pop",
36 "related": "https://api.didww.com/v3/voice_in_trunks/84746865-b1c0-414d-86c7-62c85c22fd69/pop"
37 }
38 }
39 }
40 },
41 "meta": {
42 "api_version": "2026-04-16"
43 }
44}
Other Responses#
Code |
Success |
Description |
|---|---|---|
404 |
No |
|
401 |
No |