# Get DID Group Types

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`

Note

For all returned data attributes, see [Did Group Type Object](did-group-type-object.html).

### URI Query Parameters

| Name | Type | Is Required? | Description |
| --- | --- | --- | --- |
| filter[<filter\_name>] | `string` | No | [Filtering](../../../specification/filtering.html#api-filters) |
| fields[did\_group\_types] | `string` | No | [Sparse fieldsets](../../../specification/sparse-fieldsets.html#api-sparse-fieldsets) |
| sort | `string` | No | [Sorting](../../../specification/sorting.html#api-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. |

## Example

[[DIDWW-API-EXAMPLE-START]]

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"
         }
}
```

[[DIDWW-API-EXAMPLE-END]]

## Other Responses

| Code | Success | Description |
| --- | --- | --- |
| 401 | No | [Unauthorized](../../../configuration.html#api-key) |

On this page
