---
title: "Get API Key"
description: "How to call Get API Key (GET /api/api-keys/{id}) in the Klaviyo REST API: authentication, parameters, request and response bodies, and an example request."
url: "https://developers.klaviyo.com/en/v2026-07-15/reference/get_api_key_beta"
revision: "2026-07-15.pre"
latestUrl: "https://developers.klaviyo.com/en/reference/get_api_key_beta"
operationId: "get_api_key_beta"
method: "GET"
endpoint: "https://a.klaviyo.com/api/api-keys/{id}"
authentication: "privateKey"
scopes: ["credentials:read"]
rateLimits: {"burst":"1/s","steady":"15/m"}
revisionHeader: {"name":"revision","required":true}
deprecated: false
preRelease: "BETA"
openApi: "https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15.pre/openapi/beta/apis/get_api_key_beta.json"
jsonApi: {"fields":{"api-key":["created","id","name","redacted_key","scopes","status"]},"additionalFields":{"api-key":["redacted_key"]}}
related: ["https://developers.klaviyo.com/en/v2026-07-15/reference/api-keys-beta/llms.txt","https://developers.klaviyo.com/en/v2026-07-15/reference/get_api_keys_beta.md","https://developers.klaviyo.com/en/v2026-07-15/reference/update_api_key_beta.md"]
---

# Get API Key

> This is the Markdown version of https://developers.klaviyo.com/en/v2026-07-15/reference/get_api_key_beta

```http
GET https://a.klaviyo.com/api/api-keys/{id}
```


> [!WARNING]
> **This endpoint is in beta and subject to change.**
> A beta revision header (2026-07-15.pre) is required to use our beta APIs. Klaviyo APIs in beta are not intended for use in production. See our [versioning and deprecation policy](https://developers.klaviyo.com/en/docs/api_versioning_and_deprecation_policy.md) for more information.


Retrieve a single private API key by id.

- Revision header: `revision: 2026-07-15.pre` (required)
- Scopes: `credentials:read`
- Rate limits: Burst: `1/s`, Steady: `15/m`
- OpenAPI: [Download this endpoint's OpenAPI document](https://raw.githubusercontent.com/klaviyo/openapi/2026-07-15.pre/openapi/beta/apis/get_api_key_beta.json)

## Example request

```bash
curl --request GET \
     --url 'https://a.klaviyo.com/api/api-keys/01HQXYZ' \
     --header 'Authorization: Klaviyo-API-Key your-private-api-key' \
     --header 'accept: application/vnd.api+json' \
     --header 'revision: 2026-07-15.pre'
```

## Path parameters

- `id` (string, required): Identifier for the key. Example: `01HQXYZ`

## Query parameters

- `additional-fields[api-key]` (string[]): Request additional fields not included by default in the response. Supported values: 'redacted_key' Allowed values: `redacted_key`
- `fields[api-key]` (string[]): For more information please visit [API overview](https://developers.klaviyo.com/en/v2026-07-15/reference.md) Allowed values: `created`, `id`, `name`, `redacted_key`, `scopes`, `status`

## Headers

- `revision` (string, required): API endpoint revision (format: YYYY-MM-DD[.suffix]) Default: `2026-07-15.pre`

## Responses

### 200: Success

Content type: `application/vnd.api+json`

- `data` (object, required)
  - `type` (string, required): Allowed values: `api-key`
  - `id` (string, required): Identifier for the key. Example: `01HQXYZ`
  - `attributes` (object, required)
    - `redacted_key` (string, nullable): Masked form of the key showing only the last four characters. Returned only when requested via ``additional-fields[api-key]=redacted_key``. Example: `pk_****abcd`
  - `links` (object, required)
    - `self` (string<uri>, required)
- `links` (ObjectLinks): Same fields as the first ObjectLinks above.
- `meta` (object): Response-level metadata
  - `agent_hints` (object): Optional hints emitted by the API for agent callers
    - `next_steps` (string[]): Suggested follow-up actions for agents to take after this response

#### Example response body

```json
{
  "data": {
    "type": "api-key",
    "id": "01HQXYZ",
    "attributes": {
      "redacted_key": "pk_****abcd"
    },
    "links": {
      "self": "https://www.example.com"
    }
  },
  "links": {
    "self": "https://www.example.com"
  },
  "meta": {
    "agent_hints": {
      "next_steps": [
        "string"
      ]
    }
  }
}
```

### 4XX: Client Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```

### 5XX: Server Error

Content type: `application/vnd.api+json`

- `errors` (object[], required)
  - `id` (string, required)
  - `code` (string, required)
  - `title` (string, required)
  - `detail` (string, required)
  - `source` (object)
    - `pointer` (string)
    - `parameter` (string)

#### Example response body

```json
{
  "errors": [
    {
      "id": "string",
      "code": "string",
      "title": "string",
      "detail": "string",
      "source": {
        "pointer": "string",
        "parameter": "string"
      }
    }
  ]
}
```
