Get DID#
Description
Returns a single DID owned by your account.
Request#
HTTP Method: GET
URI Path: /v3/dids/
URI Query Parameters:
Name |
Type |
Is Required? |
Description |
|---|---|---|---|
id |
|
Yes |
Unique ID identifier of the Order. |
include |
|
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 |
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 "id": "44957076-778a-4802-b60c-d22db0cda284",
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 "pending_removal": false,
19 "dedicated_channels_count": 0
20 },
21 "relationships": {
22 "did_group": {
23 "links": {
24 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/did_group",
25 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/did_group"
26 }
27 },
28 "order": {
29 "links": {
30 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/order",
31 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/order"
32 }
33 },
34 "trunk": {
35 "links": {
36 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/trunk",
37 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/trunk"
38 }
39 },
40 "trunk_group": {
41 "links": {
42 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/trunk_group",
43 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/trunk_group"
44 }
45 },
46 "capacity_pool": {
47 "links": {
48 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/capacity_pool",
49 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/capacity_pool"
50 }
51 },
52 "shared_capacity_group": {
53 "links": {
54 "self": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/relationships/shared_capacity_group",
55 "related": "https://api.didww.com/v3/dids/44957076-778a-4802-b60c-d22db0cda284/shared_capacity_group"
56 }
57 }
58 }
59 }
60}
http
1GET /v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d?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]
6
7{
8 "data": {
9 "id": "2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d",
10 "type": "dids",
11 "attributes": {
12 "blocked": false,
13 "capacity_limit": 1,
14 "description": "string",
15 "terminated": false,
16 "awaiting_registration": false,
17 "number": "437xxxxxxxxx",
18 "expires_at": "2017-06-25T08:21:41.795Z",
19 "channels_included_count": 2,
20 "created_at": "2017-06-25T08:21:41.795Z",
21 "pending_removal": false,
22 "dedicated_channels_count": 0
23 },
24 "relationships": {
25 "did_group": {
26 "links": {
27 "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/did_group",
28 "related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/did_group"
29 },
30 "data": {
31 "type": "did_groups",
32 "id": "d04b6466-3d98-4be1-aac5-93ee241f57ca"
33 }
34 },
35 "order": {
36 "links": {
37 "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/order",
38 "related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/order"
39 }
40 },
41 "trunk": {
42 "links": {
43 "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/trunk",
44 "related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/trunk"
45 }
46 },
47 "trunk_group": {
48 "links": {
49 "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/trunk_group",
50 "related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/trunk_group"
51 }
52 },
53 "capacity_pool": {
54 "links": {
55 "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/capacity_pool",
56 "related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/capacity_pool"
57 }
58 },
59 "shared_capacity_group": {
60 "links": {
61 "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/shared_capacity_group",
62 "related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/shared_capacity_group"
63 }
64 }
65 }
66 },
67 "included": [
68 {
69 "id": "d04b6466-3d98-4be1-aac5-93ee241f57ca",
70 "type": "did_groups",
71 "links": {
72 "self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca"
73 },
74 "attributes": {
75 "prefix": "721",
76 "local_prefix": "",
77 "features": [
78 "voice"
79 ],
80 "is_metered": false,
81 "area_name": "National",
82 "allow_additional_channels": true
83 },
84 "relationships": {
85 "country": {
86 "links": {
87 "self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/relationships/country",
88 "related": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/country"
89 }
90 },
91 "city": {
92 "links": {
93 "self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/relationships/city",
94 "related": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/city"
95 }
96 },
97 "did_group_type": {
98 "links": {
99 "self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/relationships/did_group_type",
100 "related": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/did_group_type"
101 }
102 },
103 "region": {
104 "links": {
105 "self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/relationships/region",
106 "related": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/region"
107 }
108 },
109 "stock_keeping_units": {
110 "links": {
111 "self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/relationships/stock_keeping_units",
112 "related": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/stock_keeping_units"
113 }
114 }
115 },
116 "meta": {
117 "available_dids_enabled": true,
118 "needs_registration": false,
119 "is_available": true,
120 "total_count": 7
121 }
122 }
123 ]
124}
curl
1curl -i -X GET 'https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d?include=did_group' -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json" --data-raw '{"data": {"attributes": {"awaiting_registration": false, "blocked": false, "capacity_limit": 1, "channels_included_count": 2, "created_at": "2017-06-25T08:21:41.795Z", "dedicated_channels_count": 0, "description": "string", "expires_at": "2017-06-25T08:21:41.795Z", "number": "437xxxxxxxxx", "pending_removal": false, "terminated": false}, "id": "2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d", "relationships": {"capacity_pool": {"links": {"related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/capacity_pool", "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/capacity_pool"}}, "did_group": {"data": {"id": "d04b6466-3d98-4be1-aac5-93ee241f57ca", "type": "did_groups"}, "links": {"related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/did_group", "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/did_group"}}, "order": {"links": {"related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/order", "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/order"}}, "shared_capacity_group": {"links": {"related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/shared_capacity_group", "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/shared_capacity_group"}}, "trunk": {"links": {"related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/trunk", "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/trunk"}}, "trunk_group": {"links": {"related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/trunk_group", "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/trunk_group"}}}, "type": "dids"}, "included": [{"id": "d04b6466-3d98-4be1-aac5-93ee241f57ca", "type": "did_groups", "links": {"self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca"}, "attributes": {"prefix": "721", "local_prefix": "", "features": ["voice"], "is_metered": false, "area_name": "National", "allow_additional_channels": true}, "relationships": {"country": {"links": {"self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/relationships/country", "related": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/country"}}, "city": {"links": {"self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/relationships/city", "related": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/city"}}, "did_group_type": {"links": {"self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/relationships/did_group_type", "related": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/did_group_type"}}, "region": {"links": {"self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/relationships/region", "related": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/region"}}, "stock_keeping_units": {"links": {"self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/relationships/stock_keeping_units", "related": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/stock_keeping_units"}}}, "meta": {"available_dids_enabled": true, "needs_registration": false, "is_available": true, "total_count": 7}}]}'
Other Responses#
Code |
Success |
Description |
|---|---|---|
404 |
No |
|
401 |
No |