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