---
title: "GetApiKeyByHash"
slug: "getapikeybyhash"
abstract: "How to retrieve an API key with a specific hash."
---
# GetApiKeyByHash

The *GetApiKeysByHash* endpoint retrieves a single API key by its hash.

| Relative Route | `/<hash>` |
| --- | --- |
| `HTTP Verb` | `GET` |

## Query string parameters

The following parameter is required:

| Name | Format | Description |
| --- | --- | --- |
| `hash` | string | The hash of the key to retrieve. |

## Response body

The response is the `DeliveryApiKey` corresponding to the token:

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

```