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>] |
|
Optional |
|
include |
|
Optional |
|
sort |
|
Optional |
Includes:
Value |
Description |
|---|---|
country |
|
region |
|
city |
|
did_group_type |
|
stock_keeping_units |
A list of Stock Keeping Unit Objects |
Filters:
Filter Name |
Type |
Allow Blank |
Allow Array |
Filters by: |
|---|---|---|---|---|
id |
|
No |
Yes |
Group |
prefix |
|
Yes |
Yes |
The group |
nanpa_prefix.id |
|
Yes |
Yes |
The nanpa prefix |
nanpa_prefix.npanxx |
|
Yes |
Yes |
The nanpa prefix |
area_name |
|
Yes |
Yes |
The |
is_metered |
|
No |
No |
The |
allow_additional_channels |
|
No |
No |
The |
available_dids_enabled |
|
No |
No |
The |
features |
|
No |
Yes |
The |
needs_registration |
|
No |
No |
The |
is_available |
|
No |
No |
The |
country.id |
|
Yes |
Yes |
The |
region.id |
|
Yes |
Yes |
The |
city.id |
|
Yes |
Yes |
The |
did_group_type.id |
|
Yes |
Yes |
The |
meta.total_count_gteq |
|
Yes |
No |
A filter on the list based on the |
Sorting:
Value |
Sorts by: |
|---|---|
country.name |
The |
did_group_type.name |
The |
prefix |
City |
local_prefix |
The |
is_metered |
The |
area_name |
The |
allow_additional_channels |
The |
Sparse Fieldsets:
Value |
Returns: |
|---|---|
prefix |
City |
local_prefix |
The |
is_metered |
The |
area_name |
The |
allow_additional_channels |
The |
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}
http
1GET /v3/did_groups?filter%5Bcountry.id%5D=c8647639-fc9c-47b2-acec-7c9e14465c25&include=stock_keeping_units&filter%5Bdid_group_type.id%5D=0d51924c-e863-44ff-be59-10547c138955 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?filter%5Bcountry.id%5D=c8647639-fc9c-47b2-acec-7c9e14465c25&include=stock_keeping_units&filter%5Bdid_group_type.id%5D=0d51924c-e863-44ff-be59-10547c138955' -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": "1d5aad75-b853-4125-9a1a-da3fedfc5674",
7 "type": "did_groups",
8 "attributes": {
9 "prefix": "7",
10 "local_prefix": "",
11 "features": [
12 "voice",
13 "voice_out",
14 "sms",
15 "sms_out"
16 ],
17 "is_metered": false,
18 "area_name": "Mobile",
19 "allow_additional_channels": true
20 },
21 "relationships": {
22 "country": {
23 "links": {
24 "self": "https://api.didww.com/v3/did_groups/1d5aad75-b853-4125-9a1a-da3fedfc5674/relationships/country",
25 "related": "https://api.didww.com/v3/did_groups/1d5aad75-b853-4125-9a1a-da3fedfc5674/country"
26 }
27 },
28 "city": {
29 "links": {
30 "self": "https://api.didww.com/v3/did_groups/1d5aad75-b853-4125-9a1a-da3fedfc5674/relationships/city",
31 "related": "https://api.didww.com/v3/did_groups/1d5aad75-b853-4125-9a1a-da3fedfc5674/city"
32 }
33 },
34 "did_group_type": {
35 "links": {
36 "self": "https://api.didww.com/v3/did_groups/1d5aad75-b853-4125-9a1a-da3fedfc5674/relationships/did_group_type",
37 "related": "https://api.didww.com/v3/did_groups/1d5aad75-b853-4125-9a1a-da3fedfc5674/did_group_type"
38 }
39 },
40 "region": {
41 "links": {
42 "self": "https://api.didww.com/v3/did_groups/1d5aad75-b853-4125-9a1a-da3fedfc5674/relationships/region",
43 "related": "https://api.didww.com/v3/did_groups/1d5aad75-b853-4125-9a1a-da3fedfc5674/region"
44 }
45 },
46 "stock_keeping_units": {
47 "links": {
48 "self": "https://api.didww.com/v3/did_groups/1d5aad75-b853-4125-9a1a-da3fedfc5674/relationships/stock_keeping_units",
49 "related": "https://api.didww.com/v3/did_groups/1d5aad75-b853-4125-9a1a-da3fedfc5674/stock_keeping_units"
50 },
51 "data": [{
52 "type": "stock_keeping_units",
53 "id": "cb17c069-098e-4be1-a7eb-eb4529e8c5f5"
54 },
55 {
56 "type": "stock_keeping_units",
57 "id": "e194165e-eda7-4718-9bbe-c5c583bd189a"
58 }
59 ]
60 },
61 "requirement": {
62 "links": {
63 "self": "https://sandbox-api.didww.com/v3/did_groups/1d5aad75-b853-4125-9a1a-da3fedfc5674/relationships/requirement",
64 "related": "https://sandbox-api.didww.com/v3/did_groups/1d5aad75-b853-4125-9a1a-da3fedfc5674/requirement"
65 }
66 }
67 },
68 "meta": {
69 "available_dids_enabled": true,
70 "needs_registration": false,
71 "is_available": true,
72 "total_count": 99
73 }
74 }],
75 "included": [{
76 "id": "cb17c069-098e-4be1-a7eb-eb4529e8c5f5",
77 "type": "stock_keeping_units",
78 "attributes": {
79 "setup_price": "0.0",
80 "monthly_price": "0.3",
81 "channels_included_count": 0
82 }
83 },
84 {
85 "id": "e194165e-eda7-4718-9bbe-c5c583bd189a",
86 "type": "stock_keeping_units",
87 "attributes": {
88 "setup_price": "0.0",
89 "monthly_price": "0.8",
90 "channels_included_count": 2
91 }
92 }
93 ],
94 "meta": {
95 "total_records": 1,
96 "api_version": "2021-12-15"
97 },
98 "links": {
99 "first": "https://api.didww.com/v3/did_groups?filter%5Bcountry.id%5D=c8647639-fc9c-47b2-acec-7c9e14465c25&filter%5Bdid_group_type.id%5D=0d51924c-e863-44ff-be59-10547c138955&include=stock_keeping_units&page%5Bnumber%5D=1&page%5Bsize%5D=50",
100 "last": "https://api.didww.com/v3/did_groups?filter%5Bcountry.id%5D=c8647639-fc9c-47b2-acec-7c9e14465c25&filter%5Bdid_group_type.id%5D=0d51924c-e863-44ff-be59-10547c138955&include=stock_keeping_units&page%5Bnumber%5D=1&page%5Bsize%5D=50"
101 }
102}
http
1GET /v3/did_groups?filter%5Bcity.id%5D=e696dec7-9c65-4e99-aab7-55a1f98154f0&include=stock_keeping_units&filter%5Bprefix%5D=20 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?filter%5Bcity.id%5D=e696dec7-9c65-4e99-aab7-55a1f98154f0&include=stock_keeping_units&filter%5Bprefix%5D=20' -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": "fc271bcc-1f9c-4c19-8174-28b7c55a208a",
7 "type": "did_groups",
8 "attributes": {
9 "prefix": "20",
10 "local_prefix": "",
11 "features": [
12 "voice",
13 "voice_out",
14 "t38"
15 ],
16 "is_metered": false,
17 "area_name": "London",
18 "allow_additional_channels": true
19 },
20 "relationships": {
21 "country": {
22 "links": {
23 "self": "https://api.didww.com/v3/did_groups/fc271bcc-1f9c-4c19-8174-28b7c55a208a/relationships/country",
24 "related": "https://api.didww.com/v3/did_groups/fc271bcc-1f9c-4c19-8174-28b7c55a208a/country"
25 }
26 },
27 "city": {
28 "links": {
29 "self": "https://api.didww.com/v3/did_groups/fc271bcc-1f9c-4c19-8174-28b7c55a208a/relationships/city",
30 "related": "https://api.didww.com/v3/did_groups/fc271bcc-1f9c-4c19-8174-28b7c55a208a/city"
31 }
32 },
33 "did_group_type": {
34 "links": {
35 "self": "https://api.didww.com/v3/did_groups/fc271bcc-1f9c-4c19-8174-28b7c55a208a/relationships/did_group_type",
36 "related": "https://api.didww.com/v3/did_groups/fc271bcc-1f9c-4c19-8174-28b7c55a208a/did_group_type"
37 }
38 },
39 "region": {
40 "links": {
41 "self": "https://api.didww.com/v3/did_groups/fc271bcc-1f9c-4c19-8174-28b7c55a208a/relationships/region",
42 "related": "https://api.didww.com/v3/did_groups/fc271bcc-1f9c-4c19-8174-28b7c55a208a/region"
43 }
44 },
45 "stock_keeping_units": {
46 "links": {
47 "self": "https://api.didww.com/v3/did_groups/fc271bcc-1f9c-4c19-8174-28b7c55a208a/relationships/stock_keeping_units",
48 "related": "https://api.didww.com/v3/did_groups/fc271bcc-1f9c-4c19-8174-28b7c55a208a/stock_keeping_units"
49 },
50 "data": [{
51 "type": "stock_keeping_units",
52 "id": "0ba87a94-7143-48cb-a0f6-d50a6a0c8cfa"
53 },
54 {
55 "type": "stock_keeping_units",
56 "id": "1a86de53-3131-491f-9e4b-3392da45d441"
57 }
58 ]
59 }
60 },
61 "meta": {
62 "available_dids_enabled": true,
63 "needs_registration": false,
64 "is_available": true,
65 "total_count": 932
66 }
67 }],
68 "included": [{
69 "id": "0ba87a94-7143-48cb-a0f6-d50a6a0c8cfa",
70 "type": "stock_keeping_units",
71 "attributes": {
72 "setup_price": "0.0",
73 "monthly_price": "0.3",
74 "channels_included_count": 0
75 }
76 },
77 {
78 "id": "1a86de53-3131-491f-9e4b-3392da45d441",
79 "type": "stock_keeping_units",
80 "attributes": {
81 "setup_price": "0.0",
82 "monthly_price": "0.8",
83 "channels_included_count": 2
84 }
85 }
86 ],
87 "meta": {
88 "total_records": 1,
89 "api_version": "2021-12-15"
90 },
91 "links": {
92 "first": "https://api.didww.com/v3/did_groups?filter%5Bcity.id%5D=e696dec7-9c65-4e99-aab7-55a1f98154f0&filter%5Bprefix%5D=20&include=stock_keeping_units&page%5Bnumber%5D=1&page%5Bsize%5D=50",
93 "last": "https://api.didww.com/v3/did_groups?filter%5Bcity.id%5D=e696dec7-9c65-4e99-aab7-55a1f98154f0&filter%5Bprefix%5D=20&include=stock_keeping_units&page%5Bnumber%5D=1&page%5Bsize%5D=50"
94 }
95}
Other Responses#
Code |
Success |
Description |
|---|---|---|
404 |
No |
|
401 |
No |