Get DIDs#
Description
Returns a list of DIDs owned by your account.
Request#
HTTP Method: GET
URI Path: /v3/dids
URI Query Parameters:
Name |
Type |
Is Required? |
Description |
|---|---|---|---|
filter[<filter_name>] |
|
Optional |
|
include |
|
Optional |
|
sort |
|
Optional |
Includes:
Value |
Description |
|---|---|
order |
|
trunk |
|
trunk.trunk_group |
|
trunk.pop |
|
trunk_group |
|
capacity_pool |
|
shared_capacity_group |
|
did_group |
|
did_group.country |
|
did_group.city |
|
did_group.region |
|
did_group.did_group_type |
|
did_group.stock_keeping_units |
Filters:
Filter Name |
Type |
Allow Blank |
Allow Array |
Filters by: |
|---|---|---|---|---|
number |
|
Yes |
Yes |
The DID |
description |
|
Yes |
Yes |
The |
terminated |
|
No |
No |
The |
awaiting_registration |
|
No |
No |
The |
billing_cycles_count |
|
Yes |
No |
The |
did_group.id |
|
Yes |
Yes |
The ID field of |
country.id |
|
Yes |
Yes |
The ID field of |
region.id |
|
Yes |
Yes |
The ID field of |
city.id |
|
Yes |
Yes |
The ID field of |
order.id |
|
Yes |
Yes |
The ID field of |
trunk.id |
|
Yes |
Yes |
The ID field of |
trunk_group.id |
|
Yes |
Yes |
The ID field of |
shared_capacity_group.id |
|
Yes |
Yes |
The ID field of |
capacity_pool.id |
|
Yes |
Yes |
The ID field of |
order.reference |
|
No |
Yes |
The reference field of |
Sorting:
Value |
Sorts by: |
|---|---|
blocked |
The |
pending |
The |
awaiting_registration |
The |
capacity_limit |
The |
description |
The |
terminated |
The |
number |
The |
expires_at |
The |
channels_included_count |
The |
dedicated_channels_count |
The |
created_at |
The |
Examples#
http
1GET /v3/dids/44957076-778a-4802-b60c-d22db0cda284 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/dids/44957076-778a-4802-b60c-d22db0cda284 -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": "ac40fb08-ac14-4a6c-8f20-fe650870c266",
8 "type": "dids",
9 "attributes": {
10 "blocked": false,
11 "capacity_limit": 1,
12 "description": "string",
13 "terminated": false,
14 "awaiting_registration": false,
15 "number": "437xxxxxxxxx",
16 "expires_at": "2017-06-25T08:21:41.795Z",
17 "channels_included_count": 2,
18 "created_at": "2017-06-25T08:21:41.795Z",
19 "pending_removal": false,
20 "dedicated_channels_count": 0
21 },
22 "relationships": {
23 "did_group": {
24 "links": {
25 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/did_group",
26 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/did_group"
27 }
28 },
29 "order": {
30 "links": {
31 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/order",
32 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/order"
33 }
34 },
35 "trunk": {
36 "links": {
37 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/trunk",
38 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/trunk"
39 }
40 },
41 "trunk_group": {
42 "links": {
43 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/trunk_group",
44 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/trunk_group"
45 }
46 },
47 "capacity_pool": {
48 "links": {
49 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/capacity_pool",
50 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/capacity_pool"
51 }
52 },
53 "shared_capacity_group": {
54 "links": {
55 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/shared_capacity_group",
56 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/shared_capacity_group"
57 }
58 }
59 }
60 },
61 {
62 "id": "b37f0fcf-24d0-4799-8e81-a69bcc889f2e",
63 "type": "dids",
64 "attributes": {
65 "blocked": false,
66 "capacity_limit": 1,
67 "description": "string",
68 "terminated": false,
69 "awaiting_registration": false,
70 "number": "437xxxxxxxxx",
71 "expires_at": "2017-06-25T08:21:41.795Z",
72 "channels_included_count": 2,
73 "created_at": "2017-06-25T08:21:41.795Z",
74 "pending_removal": false,
75 "dedicated_channels_count": 0
76 },
77 "relationships": {
78 "did_group": {
79 "links": {
80 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/did_group",
81 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/did_group"
82 }
83 },
84 "order": {
85 "links": {
86 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/order",
87 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/order"
88 }
89 },
90 "trunk": {
91 "links": {
92 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/trunk",
93 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/trunk"
94 }
95 },
96 "trunk_group": {
97 "links": {
98 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/trunk_group",
99 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/trunk_group"
100 }
101 },
102 "capacity_pool": {
103 "links": {
104 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/capacity_pool",
105 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/capacity_pool"
106 }
107 },
108 "shared_capacity_group": {
109 "links": {
110 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/shared_capacity_group",
111 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/shared_capacity_group"
112 }
113 }
114 }
115 }
116 ],
117 "meta": {
118 "total_records": 2,
119 "api_version": "2017-09-18"
120 },
121 "links": {
122 "first": "https://api.didww.com/v3/dids&page%5Bnumber%5D=1&page%5Bsize%5D=50",
123 "last": "https://api.didww.com/v3/dids&page%5Bnumber%5D=1&page%5Bsize%5D=50"
124 }
125}
http
1GET /v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d?include=did_group HTTP/1.1
2 Host: api.didww.com
3 Content-Type: application/vnd.api+json
4 Accept: application/vnd.api+json
5 Api-Key: [API token]
6
7
8 HTTP/1.1 200 OK
9 Content-Type: application/vnd.api+json
10
11 {
12 "data": [
13 {
14 "id": "ac40fb08-ac14-4a6c-8f20-fe650870c266",
15 "type": "dids",
16 "attributes": {
17 "blocked": false,
18 "capacity_limit": 1,
19 "description": "string",
20 "terminated": false,
21 "awaiting_registration": false,
22 "number": "437xxxxxxxxx",
23 "expires_at": "2017-06-25T08:21:41.795Z",
24 "channels_included_count": 2,
25 "created_at": "2017-06-25T08:21:41.795Z",
26 "pending_removal": false,
27 "dedicated_channels_count": 0
28 },
29 "relationships": {
30 "did_group": {
31 "links": {
32 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/did_group",
33 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/did_group"
34 }
35 },
36 "order": {
37 "links": {
38 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/order",
39 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/order"
40 }
41 },
42 "trunk": {
43 "links": {
44 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/trunk",
45 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/trunk"
46 }
47 },
48 "trunk_group": {
49 "links": {
50 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/trunk_group",
51 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/trunk_group"
52 }
53 },
54 "capacity_pool": {
55 "links": {
56 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/capacity_pool",
57 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/capacity_pool"
58 }
59 },
60 "shared_capacity_group": {
61 "links": {
62 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/shared_capacity_group",
63 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/shared_capacity_group"
64 }
65 }
66 }
67 },
68 {
69 "id": "b37f0fcf-24d0-4799-8e81-a69bcc889f2e",
70 "type": "dids",
71 "attributes": {
72 "blocked": false,
73 "capacity_limit": 1,
74 "description": "string",
75 "terminated": false,
76 "awaiting_registration": false,
77 "number": "437xxxxxxxxx",
78 "expires_at": "2017-06-25T08:21:41.795Z",
79 "channels_included_count": 2,
80 "created_at": "2017-06-25T08:21:41.795Z",
81 "pending_removal": false,
82 "dedicated_channels_count": 0
83 },
84 "relationships": {
85 "did_group": {
86 "links": {
87 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/did_group",
88 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/did_group"
89 }
90 },
91 "order": {
92 "links": {
93 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/order",
94 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/order"
95 }
96 },
97 "trunk": {
98 "links": {
99 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/trunk",
100 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/trunk"
101 }
102 },
103 "trunk_group": {
104 "links": {
105 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/trunk_group",
106 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/trunk_group"
107 }
108 },
109 "capacity_pool": {
110 "links": {
111 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/capacity_pool",
112 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/capacity_pool"
113 }
114 },
115 "shared_capacity_group": {
116 "links": {
117 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/shared_capacity_group",
118 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/shared_capacity_group"
119 }
120 }
121 }
122 }
123 ],
124 "meta": {
125 "total_records": 2,
126 "api_version": "2017-09-18"
127 },
128 "links": {
129 "first": "https://api.didww.com/v3/dids&page%5Bnumber%5D=1&page%5Bsize%5D=50",
130 "last": "https://api.didww.com/v3/dids&page%5Bnumber%5D=1&page%5Bsize%5D=50"
131 }
132}
curl
1curl -i -X GET 'https://nohost/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d?include=did_group' --data-raw 'HTTP/1.1 200 OK
2
3 Content-Type: application/vnd.api+json
4
5
6
7 {
8
9 "data": [
10
11 {
12
13 "id": "ac40fb08-ac14-4a6c-8f20-fe650870c266",
14
15 "type": "dids",
16
17 "attributes": {
18
19 "blocked": false,
20
21 "capacity_limit": 1,
22
23 "description": "string",
24
25 "terminated": false,
26
27 "awaiting_registration": false,
28
29 "number": "437xxxxxxxxx",
30
31 "expires_at": "2017-06-25T08:21:41.795Z",
32
33 "channels_included_count": 2,
34
35 "created_at": "2017-06-25T08:21:41.795Z",
36
37 "pending_removal": false,
38
39 "dedicated_channels_count": 0
40
41 },
42
43 "relationships": {
44
45 "did_group": {
46
47 "links": {
48
49 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/did_group",
50
51 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/did_group"
52
53 }
54
55 },
56
57 "order": {
58
59 "links": {
60
61 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/order",
62
63 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/order"
64
65 }
66
67 },
68
69 "trunk": {
70
71 "links": {
72
73 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/trunk",
74
75 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/trunk"
76
77 }
78
79 },
80
81 "trunk_group": {
82
83 "links": {
84
85 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/trunk_group",
86
87 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/trunk_group"
88
89 }
90
91 },
92
93 "capacity_pool": {
94
95 "links": {
96
97 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/capacity_pool",
98
99 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/capacity_pool"
100
101 }
102
103 },
104
105 "shared_capacity_group": {
106
107 "links": {
108
109 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/shared_capacity_group",
110
111 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/shared_capacity_group"
112
113 }
114
115 }
116
117 }
118
119 },
120
121 {
122
123 "id": "b37f0fcf-24d0-4799-8e81-a69bcc889f2e",
124
125 "type": "dids",
126
127 "attributes": {
128
129 "blocked": false,
130
131 "capacity_limit": 1,
132
133 "description": "string",
134
135 "terminated": false,
136
137 "awaiting_registration": false,
138
139 "number": "437xxxxxxxxx",
140
141 "expires_at": "2017-06-25T08:21:41.795Z",
142
143 "channels_included_count": 2,
144
145 "created_at": "2017-06-25T08:21:41.795Z",
146
147 "pending_removal": false,
148
149 "dedicated_channels_count": 0
150
151 },
152
153 "relationships": {
154
155 "did_group": {
156
157 "links": {
158
159 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/did_group",
160
161 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/did_group"
162
163 }
164
165 },
166
167 "order": {
168
169 "links": {
170
171 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/order",
172
173 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/order"
174
175 }
176
177 },
178
179 "trunk": {
180
181 "links": {
182
183 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/trunk",
184
185 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/trunk"
186
187 }
188
189 },
190
191 "trunk_group": {
192
193 "links": {
194
195 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/trunk_group",
196
197 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/trunk_group"
198
199 }
200
201 },
202
203 "capacity_pool": {
204
205 "links": {
206
207 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/capacity_pool",
208
209 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/capacity_pool"
210
211 }
212
213 },
214
215 "shared_capacity_group": {
216
217 "links": {
218
219 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/shared_capacity_group",
220
221 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/shared_capacity_group"
222
223 }
224
225 }
226
227 }
228
229 }
230
231 ],
232
233 "meta": {
234
235 "total_records": 2,
236
237 "api_version": "2017-09-18"
238
239 },
240
241 "links": {
242
243 "first": "https://api.didww.com/v3/dids&page%5Bnumber%5D=1&page%5Bsize%5D=50",
244
245 "last": "https://api.didww.com/v3/dids&page%5Bnumber%5D=1&page%5Bsize%5D=50"
246
247 }
248
249}'
Other Responses#
Code |
Success |
Description |
|---|---|---|
401 |
No |