Get Inbound Trunk Groups#
Returns a collection of Trunk Groups.
Request#
HTTP Method: GET
URI Path: /v3/voice_in_trunk_groups
Note
For all returned data attributes, see Trunk Group Object.
URI Query Parameters#
Name |
Type |
Is Required? |
Description |
|---|---|---|---|
include |
|
No |
|
filter[<filter_name>] |
|
No |
|
fields[voice_in_trunk_groups] |
|
No |
|
sort |
|
No |
Includes#
Value |
Description |
|---|---|
voice_in_trunks |
Filters#
Filter Name |
Type |
Allow Blank |
Allow Array |
Filters by: |
|---|---|---|---|---|
external_reference_id |
|
No |
No |
The |
Sorting#
Value |
Sorts by: |
|---|---|
name |
The |
created_at |
The |
capacity_limit |
The |
Examples#
http
1GET /v3/voice_in_trunk_groups 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_trunk_groups -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": "65b401cb-42f5-4911-877d-dc317a46b478",
8 "type": "voice_in_trunk_groups",
9 "links": {
10 "self": "https://api.didww.com/v3/voice_in_trunk_groups/65b401cb-42f5-4911-877d-dc317a46b478"
11 },
12 "attributes": {
13 "created_at": "2017-06-25T14:56:31.513Z",
14 "external_reference_id": null,
15 "name": "Common Group",
16 "capacity_limit": 69
17 },
18 "relationships": {
19 "voice_in_trunks": {
20 "links": {
21 "self": "https://api.didww.com/v3/voice_in_trunk_groups/65b401cb-42f5-4911-877d-dc317a46b478/relationships/voice_in_trunks",
22 "related": "https://api.didww.com/v3/voice_in_trunk_groups/65b401cb-42f5-4911-877d-dc317a46b478/voice_in_trunks"
23 }
24 }
25 },
26 "meta": {
27 "trunks_count": 1
28 }
29 },
30 {
31 "id": "72a60b4a-affb-46c7-8a8a-7e042c7611e8",
32 "type": "voice_in_trunk_groups",
33 "links": {
34 "self": "https://api.didww.com/v3/voice_in_trunk_groups/72a60b4a-affb-46c7-8a8a-7e042c7611e8"
35 },
36 "attributes": {
37 "created_at": "2017-06-25T14:56:31.513Z",
38 "external_reference_id": null,
39 "name": "Custom Group",
40 "capacity_limit": 50
41 },
42 "relationships": {
43 "voice_in_trunks": {
44 "links": {
45 "self": "https://api.didww.com/v3/voice_in_trunk_groups/72a60b4a-affb-46c7-8a8a-7e042c7611e8/relationships/voice_in_trunks",
46 "related": "https://api.didww.com/v3/voice_in_trunk_groups/72a60b4a-affb-46c7-8a8a-7e042c7611e8/voice_in_trunks"
47 }
48 }
49 },
50 "meta": {
51 "trunks_count": 0
52 }
53 }
54 ],
55 "meta": {
56 "total_records": 2
57 },
58 "links": {
59 "first": "https://api.didww.com/v3/voice_in_trunk_groups?page%5Bnumber%5D=1&page%5Bsize%5D=50",
60 "last": "https://api.didww.com/v3/voice_in_trunk_groups?page%5Bnumber%5D=1&page%5Bsize%5D=50"
61 }
62}
http
1GET /v3/voice_in_trunk_groups?include=voice_in_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_in_trunk_groups?include=voice_in_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": "a8176983-61c4-4768-b699-10d5f3245d90",
8 "type": "voice_in_trunk_groups",
9 "links": {
10 "self": "https://api.didww.com/v3/voice_in_trunk_groups/a8176983-61c4-4768-b699-10d5f3245d90"
11 },
12 "attributes": {
13 "created_at": "2017-06-25T14:56:31.513Z",
14 "external_reference_id": null,
15 "name": "Common Group",
16 "capacity_limit": 69
17 },
18 "relationships": {
19 "voice_in_trunks": {
20 "links": {
21 "self": "https://api.didww.com/v3/voice_in_trunk_groups/a8176983-61c4-4768-b699-10d5f3245d90/relationships/voice_in_trunks",
22 "related": "https://api.didww.com/v3/voice_in_trunk_groups/a8176983-61c4-4768-b699-10d5f3245d90/voice_in_trunks"
23 },
24 "data": [
25 {
26 "type": "voice_in_trunks",
27 "id": "5aa0b0ea-2bda-4424-a93c-104829d72c06"
28 }
29 ]
30 }
31 },
32 "meta": {
33 "trunks_count": 1
34 }
35 },
36 {
37 "id": "def3b7b1-ce76-420d-9684-8dbdb69e17c1",
38 "type": "voice_in_trunk_groups",
39 "links": {
40 "self": "https://api.didww.com/v3/voice_in_trunk_groups/def3b7b1-ce76-420d-9684-8dbdb69e17c1"
41 },
42 "attributes": {
43 "created_at": "2017-06-25T14:56:31.513Z",
44 "external_reference_id": null,
45 "name": "Custom Group",
46 "capacity_limit": 50
47 },
48 "relationships": {
49 "voice_in_trunks": {
50 "links": {
51 "self": "https://api.didww.com/v3/voice_in_trunk_groups/def3b7b1-ce76-420d-9684-8dbdb69e17c1/relationships/voice_in_trunks",
52 "related": "https://api.didww.com/v3/voice_in_trunk_groups/def3b7b1-ce76-420d-9684-8dbdb69e17c1/voice_in_trunks"
53 },
54 "data": [
55
56 ]
57 }
58 },
59 "meta": {
60 "trunks_count": 0
61 }
62 }
63 ],
64 "included": [
65 {
66 "id": "5aa0b0ea-2bda-4424-a93c-104829d72c06",
67 "type": "voice_in_trunks",
68 "attributes": {
69 "priority": 1,
70 "capacity_limit": 5,
71 "weight": 65535,
72 "name": "Office Mobile",
73 "cli_format": "e164",
74 "cli_prefix": null,
75 "description": null,
76 "ringing_timeout": null,
77 "configuration": {
78 "type": "pstn_configurations",
79 "attributes": {
80 "dst": "1xxxxxxxxx"
81 }
82 }
83 },
84 "relationships": {
85 "voice_in_trunk_group": {
86 "links": {
87 "self": "https://api.didww.com/v3/voice_in_trunks/5aa0b0ea-2bda-4424-a93c-104829d72c06/relationships/voice_in_trunk_group",
88 "related": "https://api.didww.com/v3/voice_in_trunks/5aa0b0ea-2bda-4424-a93c-104829d72c06/voice_in_trunk_group"
89 }
90 }
91 }
92 }
93 ],
94 "meta": {
95 "total_records": 2
96 },
97 "links": {
98 "first": "https://api.didww.com/v3/voice_in_trunk_groups?include=voice_in_trunks&page%5Bnumber%5D=1&page%5Bsize%5D=50",
99 "last": "https://api.didww.com/v3/voice_in_trunk_groups?include=voice_in_trunks&page%5Bnumber%5D=1&page%5Bsize%5D=50"
100 }
101}
Other Responses#
Code |
Success |
Description |
|---|---|---|
401 |
No |