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

string

Yes

Unique ID identifier of the Order.

include

string

No

Related resources to include in the response. See Inclusion.

Includes#

Object Relationships#

Value

Description

order

Order Object

voice_in_trunk

Trunk Object

voice_in_trunk.voice_in_trunk_group

Trunk Group Object

voice_in_trunk.pop

POP Object

voice_in_trunk_group

Trunk Group Object

capacity_pool

Capacity Pool Object

shared_capacity_group

Shared Capacity Group Object

did_group

DID Group Object

did_group.country

Country Object

did_group.city

City Object

did_group.region

Region Object

did_group.did_group_type

DID Group Type Object

did_group.stock_keeping_units

Stock Keeping Unit Object

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}

Other Responses#

Code

Success

Description

404

No

Not Found

401

No

Unauthorized