Get DIDs#
Returns a list of DIDs owned by your account.
Request#
HTTP Method: GET
URI Path: /v3/dids
URI Query Parameters#
Includes#
Value |
Description |
|---|---|
order |
|
voice_in_trunk |
|
voice_in_trunk.voice_in_trunk_group |
|
voice_in_trunk.pop |
|
voice_in_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 |
blocked |
|
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 |
voice_in_trunk.id |
|
Yes |
Yes |
The ID field of |
voice_in_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 |
did_group.features |
|
No |
Yes |
DID Group |
address_verification.id |
|
Yes |
Yes |
The ID field of |
Sorting#
Value |
Sorts by: |
|---|---|
blocked |
Blocked status |
awaiting_registration |
Awaiting registration status |
terminated |
Termination status |
capacity_limit |
Capacity limit |
billing_cycles_count |
Billing cycles count |
description |
Description text |
number |
DID number |
expires_at |
Expiration timestamp |
channels_included_count |
Included channels count |
dedicated_channels_count |
Dedicated channels count |
created_at |
Creation timestamp |
Sparse Fieldsets#
Value |
Returns: |
|---|---|
blocked |
The |
awaiting_registration |
The |
terminated |
The |
capacity_limit |
The |
billing_cycles_count |
The |
description |
The |
number |
The |
expires_at |
The |
channels_included_count |
The |
dedicated_channels_count |
The |
created_at |
The |
Examples#
http
1GET /v3/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/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": "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 "dedicated_channels_count": 0
20 },
21 "relationships": {
22 "did_group": {
23 "links": {
24 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/did_group",
25 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/did_group"
26 }
27 },
28 "order": {
29 "links": {
30 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/order",
31 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/order"
32 }
33 },
34 "voice_in_trunk": {
35 "links": {
36 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/voice_in_trunk",
37 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/voice_in_trunk"
38 }
39 },
40 "voice_in_trunk_group": {
41 "links": {
42 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/voice_in_trunk_group",
43 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/voice_in_trunk_group"
44 }
45 },
46 "capacity_pool": {
47 "links": {
48 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/capacity_pool",
49 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/capacity_pool"
50 }
51 },
52 "shared_capacity_group": {
53 "links": {
54 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/shared_capacity_group",
55 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/shared_capacity_group"
56 }
57 },
58 "address_verification": {
59 "links": {
60 "self": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/relationships/address_verification",
61 "related": "https://api.didww.com/v3/dids/ac40fb08-ac14-4a6c-8f20-fe650870c266/address_verification"
62 }
63 }
64 }
65 },
66 {
67 "id": "b37f0fcf-24d0-4799-8e81-a69bcc889f2e",
68 "type": "dids",
69 "attributes": {
70 "blocked": false,
71 "capacity_limit": 1,
72 "description": "string",
73 "terminated": false,
74 "awaiting_registration": false,
75 "number": "437xxxxxxxxx",
76 "expires_at": "2017-06-25T08:21:41.795Z",
77 "channels_included_count": 2,
78 "created_at": "2017-06-25T08:21:41.795Z",
79 "dedicated_channels_count": 0
80 },
81 "relationships": {
82 "did_group": {
83 "links": {
84 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/did_group",
85 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/did_group"
86 }
87 },
88 "order": {
89 "links": {
90 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/order",
91 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/order"
92 }
93 },
94 "voice_in_trunk": {
95 "links": {
96 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/voice_in_trunk",
97 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/voice_in_trunk"
98 }
99 },
100 "voice_in_trunk_group": {
101 "links": {
102 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/voice_in_trunk_group",
103 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/voice_in_trunk_group"
104 }
105 },
106 "capacity_pool": {
107 "links": {
108 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/capacity_pool",
109 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/capacity_pool"
110 }
111 },
112 "shared_capacity_group": {
113 "links": {
114 "self": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/relationships/shared_capacity_group",
115 "related": "https://api.didww.com/v3/dids/b37f0fcf-24d0-4799-8e81-a69bcc889f2e/shared_capacity_group"
116 }
117 }
118 }
119 }
120 ],
121 "meta": {
122 "total_records": 2
123 },
124 "links": {
125 "first": "https://api.didww.com/v3/dids&page%5Bnumber%5D=1&page%5Bsize%5D=50",
126 "last": "https://api.didww.com/v3/dids&page%5Bnumber%5D=1&page%5Bsize%5D=50"
127 }
128 }
http
1GET /v3/dids?include=did_group 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?include=did_group' -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": "2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d",
7 "type": "dids",
8 "attributes": {
9 "blocked": false,
10 "capacity_limit": 1,
11 "description": "string",
12 "terminated": false,
13 "awaiting_registration": false,
14 "number": "437xxxxxxxxx",
15 "expires_at": "2017-06-25T08:21:41.795Z",
16 "channels_included_count": 2,
17 "created_at": "2017-06-25T08:21:41.795Z",
18 "dedicated_channels_count": 0
19 },
20 "relationships": {
21 "did_group": {
22 "links": {
23 "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/did_group",
24 "related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/did_group"
25 },
26 "data": {
27 "type": "did_groups",
28 "id": "d04b6466-3d98-4be1-aac5-93ee241f57ca"
29 }
30 },
31 "order": {
32 "links": {
33 "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/order",
34 "related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/order"
35 }
36 },
37 "voice_in_trunk": {
38 "links": {
39 "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/voice_in_trunk",
40 "related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/voice_in_trunk"
41 }
42 },
43 "voice_in_trunk_group": {
44 "links": {
45 "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/voice_in_trunk_group",
46 "related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/voice_in_trunk_group"
47 }
48 },
49 "capacity_pool": {
50 "links": {
51 "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/capacity_pool",
52 "related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/capacity_pool"
53 }
54 },
55 "shared_capacity_group": {
56 "links": {
57 "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/shared_capacity_group",
58 "related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/shared_capacity_group"
59 }
60 }
61 }
62 },
63 "included": [
64 {
65 "id": "d04b6466-3d98-4be1-aac5-93ee241f57ca",
66 "type": "did_groups",
67 "links": {
68 "self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca"
69 },
70 "attributes": {
71 "prefix": "721",
72 "local_prefix": "",
73 "features": [
74 "voice"
75 ],
76 "is_metered": false,
77 "area_name": "National",
78 "allow_additional_channels": true
79 },
80 "relationships": {
81 "country": {
82 "links": {
83 "self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/relationships/country",
84 "related": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/country"
85 }
86 },
87 "city": {
88 "links": {
89 "self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/relationships/city",
90 "related": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/city"
91 }
92 },
93 "did_group_type": {
94 "links": {
95 "self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/relationships/did_group_type",
96 "related": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/did_group_type"
97 }
98 },
99 "region": {
100 "links": {
101 "self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/relationships/region",
102 "related": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/region"
103 }
104 },
105 "stock_keeping_units": {
106 "links": {
107 "self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/relationships/stock_keeping_units",
108 "related": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/stock_keeping_units"
109 }
110 }
111 }
112 }
113 ]
114}
Other Responses#
Code |
Success |
Description |
|---|---|---|
401 |
No |