Get DID Groups#

Description

Returns a list of DID Groups, which is essentially a list of the current DIDWW coverage. DID Groups are phone numbers that share a common city or area code.

Request#

HTTP Method: GET

URI Path: /v3/did_groups

URI Query Parameters:

Name

Type

Is Required?

Description

filter[<filter_name>]

Integer, string, boolean

Optional

Filtering

include

string

Optional

Inclusion

sort

string

Optional

Sorting

Includes:

Value

Description

country

Country Object

region

Region Object

city

City Object

did_group_type

DID Group Type Object

stock_keeping_units

A list of Stock Keeping Unit Objects

Filters:

Filter Name

Type

Allow Blank

Allow Array

Filters by:

id

string

No

Yes

Group id field.

prefix

string

Yes

Yes

The group prefix field.

nanpa_prefix.id

string

Yes

Yes

The nanpa prefix id field.

nanpa_prefix.npanxx

string

Yes

Yes

The nanpa prefix npa / nxx fields.

area_name

string

Yes

Yes

The area_name field (for example London). Case insensitive.

is_metered

boolean

No

No

The is_metered field.

allow_additional_channels

boolean

No

No

The allow_additional_channels field.

available_dids_enabled

boolean

No

No

The available_dids_enabled field.

features

string

No

Yes

The features field. Can be one/several/all of ‘voice_in’, ‘voice_out’, ‘t38’, ‘sms_in’, ‘sms_out’. example: ‘voice_in,sms_in’

needs_registration

boolean

No

No

The needs_registration field.

is_available

boolean

No

No

The is_available field.

country.id

string

Yes

Yes

The country.id field.

region.id

string

Yes

Yes

The region.id field.

city.id

string

Yes

Yes

The city.id field.

did_group_type.id

string

Yes

Yes

The did_group_type.id field.

meta.total_count_gteq

Integer

Yes

No

A filter on the list based on the meta.total_count_gteq field, where gteq stands for greater-equal.

Sorting:

Value

Sorts by:

country.name

The country.name field.

did_group_type.name

The did_group_type.name field.

prefix

City prefix field.

local_prefix

The local_prefix field.

is_metered

The is_metered field.

area_name

The area_name field.

allow_additional_channels

The allow_additional_channels field.

Sparse Fieldsets:

Value

Returns:

prefix

City prefix attribute.

local_prefix

The local_prefix attribute.

is_metered

The is_metered attribute.

area_name

The area_name attribute.

allow_additional_channels

The allow_additional_channels attribute.

Examples#

http

1GET /v3/did_groups 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/did_groups -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": "ac160b14-e670-490f-b158-d3ba552c623f",
 7        "type": "did_groups",
 8        "attributes": {
 9            "prefix": "241",
10            "local_prefix": "",
11            "features": [
12                "voice",
13                "voice_out",
14                "t38"
15            ],
16            "is_metered": false,
17            "area_name": "Aachen",
18            "allow_additional_channels": true
19        },
20        "relationships": {
21            "country": {
22                "links": {
23                    "self": "https://api.didww.com/v3/did_groups/ac160b14-e670-490f-b158-d3ba552c623f/relationships/country",
24                    "related": "https://api.didww.com/v3/did_groups/ac160b14-e670-490f-b158-d3ba552c623f/country"
25                }
26            },
27            "city": {
28                "links": {
29                    "self": "https://api.didww.com/v3/did_groups/ac160b14-e670-490f-b158-d3ba552c623f/relationships/city",
30                    "related": "https://api.didww.com/v3/did_groups/ac160b14-e670-490f-b158-d3ba552c623f/city"
31                }
32            },
33            "did_group_type": {
34                "links": {
35                    "self": "https://api.didww.com/v3/did_groups/ac160b14-e670-490f-b158-d3ba552c623f/relationships/did_group_type",
36                    "related": "https://api.didww.com/v3/did_groups/ac160b14-e670-490f-b158-d3ba552c623f/did_group_type"
37                }
38            },
39            "region": {
40                "links": {
41                    "self": "https://api.didww.com/v3/did_groups/ac160b14-e670-490f-b158-d3ba552c623f/relationships/region",
42                    "related": "https://api.didww.com/v3/did_groups/ac160b14-e670-490f-b158-d3ba552c623f/region"
43                }
44            },
45            "stock_keeping_units": {
46                "links": {
47                    "self": "https://api.didww.com/v3/did_groups/ac160b14-e670-490f-b158-d3ba552c623f/relationships/stock_keeping_units",
48                    "related": "https://api.didww.com/v3/did_groups/ac160b14-e670-490f-b158-d3ba552c623f/stock_keeping_units"
49                }
50            },
51            "requirement": {
52                "links": {
53                    "self": "https://sandbox-api.didww.com/v3/did_groups/ac160b14-e670-490f-b158-d3ba552c623f/relationships/requirement",
54                    "related": "https://sandbox-api.didww.com/v3/did_groups/ac160b14-e670-490f-b158-d3ba552c623f/requirement"
55                }
56            }
57        },
58        "meta": {
59            "available_dids_enabled": false,
60            "needs_registration": true,
61            "is_available": true,
62            "total_count": 21
63        }
64
65    }],
66    "meta": {
67        "total_records": 1,
68        "api_version": "2021-12-15"
69    },
70    "links": {
71        "first": "https://api.didww.com/v3/did_groups?page%5Bnumber%5D=1&page%5Bsize%5D=50",
72        "last": "https://api.didww.com/v3/did_groups?page%5Bnumber%5D=32&page%5Bsize%5D=50"
73    }
74}

Other Responses#

Code

Success

Description

404

No

Not Found

401

No

Unauthorized