---
title: "GetApiKeyByToken"
slug: "getapikeybytoken"
abstract: "How to retrieve an API key with a specific token."
---
# GetApiKeyByToken

The *GetApiKeyByToken* endpoint retrieves a single API key identified by its token.

| Relative Route | `/token` |
| --- | --- |
| `HTTP Verb` | `GET` |

## Headers

The following header is required:

| Name | Format | Description |
| --- | --- | --- |
| `X-GQL-Token` | string | The token of the key to retrieve. |

## Response body

The response is the `DeliveryApiKey` that correspond to the token:

```json

 {
  "TenantId": "Sitecore-tenant-id",
  "Hash": "example_token",
  "IsRevoked": false,
  "Label": "Example key",
  "Scopes": ["scope1", "scope2"],
  "CreatedBy": "ADN",
  "Created": "2020-12-02"
 }
]

```