Get DID#
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 |
|
No |
Related resources to include in the response. See Inclusion. |
Includes#
Object Relationships#
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 |
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": "9c55ccc7-8b8e-4684-beaa-9f81462dcfdb",
7 "type": "dids",
8 "attributes": {
9 "blocked": false,
10 "capacity_limit": 1,
11 "description": "description",
12 "terminated": false,
13 "awaiting_registration": false,
14 "created_at": "2020-09-14T07:35:07.198Z",
15 "billing_cycles_count": null,
16 "number": "35314403952",
17 "expires_at": "2021-05-14T07:36:06.443Z",
18 "channels_included_count": 0,
19 "dedicated_channels_count": 0
20 },
21 "relationships": {
22 "did_group": {
23 "links": {
24 "self": "https://api.didww.com/v3/dids/9c55ccc7-8b8e-4684-beaa-9f81462dcfdb/relationships/did_group",
25 "related": "https://api.didww.com/v3/dids/9c55ccc7-8b8e-4684-beaa-9f81462dcfdb/did_group"
26 }
27 },
28 "order": {
29 "links": {
30 "self": "https://api.didww.com/v3/dids/9c55ccc7-8b8e-4684-beaa-9f81462dcfdb/relationships/order",
31 "related": "https://api.didww.com/v3/dids/9c55ccc7-8b8e-4684-beaa-9f81462dcfdb/order"
32 }
33 },
34 "voice_in_trunk": {
35 "links": {
36 "self": "https://api.didww.com/v3/dids/9c55ccc7-8b8e-4684-beaa-9f81462dcfdb/relationships/voice_in_trunk",
37 "related": "https://api.didww.com/v3/dids/9c55ccc7-8b8e-4684-beaa-9f81462dcfdb/voice_in_trunk"
38 }
39 },
40 "voice_in_trunk_group": {
41 "links": {
42 "self": "https://api.didww.com/v3/dids/9c55ccc7-8b8e-4684-beaa-9f81462dcfdb/relationships/voice_in_trunk_group",
43 "related": "https://api.didww.com/v3/dids/9c55ccc7-8b8e-4684-beaa-9f81462dcfdb/voice_in_trunk_group"
44 }
45 },
46 "capacity_pool": {
47 "links": {
48 "self": "https://api.didww.com/v3/dids/9c55ccc7-8b8e-4684-beaa-9f81462dcfdb/relationships/capacity_pool",
49 "related": "https://api.didww.com/v3/dids/9c55ccc7-8b8e-4684-beaa-9f81462dcfdb/capacity_pool"
50 }
51 },
52 "shared_capacity_group": {
53 "links": {
54 "self": "https://api.didww.com/v3/dids/9c55ccc7-8b8e-4684-beaa-9f81462dcfdb/relationships/shared_capacity_group",
55 "related": "https://api.didww.com/v3/dids/9c55ccc7-8b8e-4684-beaa-9f81462dcfdb/shared_capacity_group"
56 }
57 },
58 "address_verification": {
59 "links": {
60 "self": "https://api.didww.com/v3/dids/9c55ccc7-8b8e-4684-beaa-9f81462dcfdb/relationships/address_verification",
61 "related": "https://api.didww.com/v3/dids/9c55ccc7-8b8e-4684-beaa-9f81462dcfdb/address_verification"
62 }
63 }
64 }
65 },
66 "meta": {
67 "api_version": "2022-05-10"
68 }
69}
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 "dedicated_channels_count": 0
22 },
23 "relationships": {
24 "did_group": {
25 "links": {
26 "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/did_group",
27 "related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/did_group"
28 },
29 "data": {
30 "type": "did_groups",
31 "id": "d04b6466-3d98-4be1-aac5-93ee241f57ca"
32 }
33 },
34 "order": {
35 "links": {
36 "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/order",
37 "related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/order"
38 }
39 },
40 "voice_in_trunk": {
41 "links": {
42 "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/voice_in_trunk",
43 "related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/voice_in_trunk"
44 }
45 },
46 "voice_in_trunk_group": {
47 "links": {
48 "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/voice_in_trunk_group",
49 "related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/voice_in_trunk_group"
50 }
51 },
52 "capacity_pool": {
53 "links": {
54 "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/capacity_pool",
55 "related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/capacity_pool"
56 }
57 },
58 "shared_capacity_group": {
59 "links": {
60 "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/shared_capacity_group",
61 "related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/shared_capacity_group"
62 }
63 }
64 }
65 },
66 "included": [
67 {
68 "id": "d04b6466-3d98-4be1-aac5-93ee241f57ca",
69 "type": "did_groups",
70 "links": {
71 "self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca"
72 },
73 "attributes": {
74 "prefix": "721",
75 "local_prefix": "",
76 "features": [
77 "voice"
78 ],
79 "is_metered": false,
80 "area_name": "National",
81 "allow_additional_channels": true
82 },
83 "relationships": {
84 "country": {
85 "links": {
86 "self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/relationships/country",
87 "related": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/country"
88 }
89 },
90 "city": {
91 "links": {
92 "self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/relationships/city",
93 "related": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/city"
94 }
95 },
96 "did_group_type": {
97 "links": {
98 "self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/relationships/did_group_type",
99 "related": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/did_group_type"
100 }
101 },
102 "region": {
103 "links": {
104 "self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/relationships/region",
105 "related": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/region"
106 }
107 },
108 "stock_keeping_units": {
109 "links": {
110 "self": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/relationships/stock_keeping_units",
111 "related": "https://api.didww.com/v3/did_groups/d04b6466-3d98-4be1-aac5-93ee241f57ca/stock_keeping_units"
112 }
113 }
114 }
115 }
116 ]
117}
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", "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"}}, "voice_in_trunk": {"links": {"related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/voice_in_trunk", "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/voice_in_trunk"}}, "voice_in_trunk_group": {"links": {"related": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/voice_in_trunk_group", "self": "https://api.didww.com/v3/dids/2b1f91d7-8f7a-4933-b1e4-43bbe6aff89d/relationships/voice_in_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"}}}}]}'
Other Responses#
Code |
Success |
Description |
|---|---|---|
404 |
No |
|
401 |
No |