Get DID Group Types

Description

Returns a list of DID Group Types. A DID Group Type defines a broad category of DID services supported by DIDWW (for example, mobile, local and toll-free).

Request

HTTP Method: GET

URI Path: /v3/did_group_types

URI Query Parameters:

Name

Type

Is Required?

Description

filter[<filter_name>]

string

Optional

Filtering

sort

string

Optional

Sorting

Filters:

Filter Name

Type

Allow Blank

Allow Array

Filters by:

id

string

No

Yes

Group Type id field.

name

string

Yes

Yes

Group Type name field.

Sorting:

Value

Sorts by:

name

DID Group Type name field.

Fielding:

Value

Returns:

name

DID Group Type name attribute.

Example

http

GET /v3/did_group_types HTTP/1.1
Host: api.didww.com
Content-Type: application/vnd.api+json
Accept: application/vnd.api+json
Api-Key: [API token]

curl

curl -i -X GET https://api.didww.com/v3/did_group_types -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json"

response

HTTP/1.1 200 OK
Content-Type: application/vnd.api+json

{
    "data": [
    {
        "id": "5827aaef-b3e7-4282-ab9f-e9c17a3e9b93",
        "type": "did_group_types",
        "attributes": {
            "name": "Local"
           }
     },
     {
         "id": "842b298a-9243-4989-a455-4bceac0c7e0e",
         "type": "did_group_types",
         "attributes": {
             "name": "National"
         }
     },
     {
         "id": "96462614-64cf-4898-a434-4e03f8d7f6ab",
         "type": "did_group_types",
         "attributes": {
             "name": "Toll-free"
         }
     },
     {
         "id": "bf31407e-d583-4a1b-b8ee-a5f0d77d865a",
         "type": "did_group_types",
         "attributes": {
             "name": "Mobile"
         }
     },
     {
         "id": "5ad07e30-11f3-4ff9-ba87-fd06575c8f06",
         "type": "did_group_types",
         "attributes": {
             "name": "Shared Cost"
         }
     },
     {
         "id": "e961316f-7f16-4d29-b619-2fd7c421c738",
         "type": "did_group_types",
         "attributes": {
             "name": "Global"
         }
     }
     ],
     "meta": {
         "total_records": 6
         },
         "links": {
             "first": "https://api.didww.comv3/did_group_types?page%5Bnumber%5D=1&page%5Bsize%5D=50",
             "last": "https://api.didww.com/v3/did_group_types?page%5Bnumber%5D=1&page%5Bsize%5D=50"
         }
}

Other Responses

Code

Success

Description

404

No

Not Found

401

No

Unauthorized