---
title: "GET /key — Current API key"
url: https://lumean.app/en/developers/docs/api/get-key
locale: en
description: "Current API key"
generated: 2026-11-23
operationId: apiKey.show
method: GET
path: /key
scopes: []
spec_version: 1.0.0
---

# GET /key

**Current API key**

Describes the key the request is signed with: its `id` and `name` — the same as in the
dashboard — its `permissions`, whether it is active, when it expires and its limits.

Use it to check a key before working with it: which API sections it opens, when it
expires and how much is left in its token pool (`limits.tokens.quota`). An empty
`permissions` list means the key has no Public API permissions: this endpoint works, the
other `/api/public/*` endpoints answer **403**. AI API access does not depend on
permissions — it is the AI switch on the key in the dashboard.

The key secret and its hash are never returned.

**Required key permission:** none — any active key works.

- Required scope: none — any active key works

## Request

```bash
curl -X GET 'https://api.lumean.app/api/public/key' \
  -H 'Accept: application/json' \
  -H 'X-API-KEY: YOUR_API_KEY'
```

## Parameters

| Field | In | Type | Req. | Description |
| --- | --- | --- | --- | --- |
| `X-Locale` | header | `string` | — | Language of the localised texts in the response (`message`, labels, failure reasons), an ISO-639-1 code. Optional; without it — the key owner’s account language, then `Accept-Language`, then the default language. An unknown or unsupported code is skipped as if it were absent. |
| `X-Timezone` | header | `string` | — | IANA time zone (`Europe/Moscow`) in which the response shows moments in time — ISO-8601 with an offset. Optional; without it dates come in UTC. An invalid zone is ignored. The server returns the applied zone in the response header of the same name. |

## Request body

No body.

## Responses

### 200 — The key the request is signed with.

**Response fields**

| Field | Type | Req. | Description |
| --- | --- | --- | --- |
| `success` | `boolean` | required | Success flag. Branch on the HTTP status code instead: any 2xx response carries `true` here, while an error comes back in a different shape that need not contain this field at all. |
| `message` | `string` | required | A human-readable note in the account language. Fine to show to a user; do not parse it — the wording changes without notice and is not an error code. |
| `data` | `PublicApiKey` | required | The response payload. |
| `data.id` | `integer` | required | Key ID — the same as in the dashboard key list. |
| `data.name` | `string` | required | Key name set when it was issued. |
| `data.permissions` | `array<any>` | required | Key permissions — the same list as in the dashboard (`orders.read`, `billing.read`, `*` and so on). An empty list means no Public API permissions: this endpoint works, the other `/api/public/*` endpoints answer 403. AI API access does not depend on permissions. |
| `data.is_active` | `boolean` | required | The key is active. An inactive key never gets here — it receives 401, so the response always has `true`. |
| `data.expires_at` | `string` — date-time — nullable | required | When the key expires (ISO 8601; in UTC unless `X-Timezone` is sent); `null` — it never expires. |
| `data.limits` | `object` | required | Key limits: request and token windows and a token pool with no time-based reset. |
| `data.limits.requests` | `object` | required | How many requests the key may make per window; `null` — the window is not limited. |
| `data.limits.requests.per_minute` | `integer` — nullable | required | Requests per minute; `null` — unlimited. |
| `data.limits.requests.per_hour` | `integer` — nullable | required | Requests per hour; `null` — unlimited. |
| `data.limits.requests.per_day` | `integer` — nullable | required | Requests per day; `null` — unlimited. |
| `data.limits.tokens` | `object` | required | How many generation tokens the key may spend per window; `null` — the window is not limited. |
| `data.limits.tokens.per_minute` | `integer` — nullable | required | Tokens per minute; `null` — unlimited. |
| `data.limits.tokens.per_hour` | `integer` — nullable | required | Tokens per hour; `null` — unlimited. |
| `data.limits.tokens.per_day` | `integer` — nullable | required | Tokens per day; `null` — unlimited. |
| `data.limits.tokens.per_month` | `integer` — nullable | required | Tokens per month; `null` — unlimited. |
| `data.limits.tokens.quota` | `object` | required | A token pool with no time-based reset, granted by an administrator. Once it runs out, generation answers 429 `token_quota_exceeded`. |
| `data.limits.tokens.quota.limit` | `integer` — nullable | required | Pool size; `null` — there is no pool and it does not limit the key. |
| `data.limits.tokens.quota.used` | `integer` | required | How many pool tokens are already spent. |
| `data.limits.tokens.quota.remaining` | `integer` — nullable | required | How many pool tokens are left; `null` — there is no pool. |

**Example**

```json
{
  "success": true,
  "message": "string",
  "data": {
    "id": 1,
    "name": "string",
    "permissions": [
      "string"
    ],
    "is_active": true,
    "expires_at": "2026-07-17T12:34:56+00:00",
    "limits": {
      "requests": {
        "per_minute": 1,
        "per_hour": 1,
        "per_day": 1
      },
      "tokens": {
        "per_minute": 1,
        "per_hour": 1,
        "per_day": 1,
        "per_month": 1,
        "quota": {
          "limit": 1,
          "used": 1,
          "remaining": 1
        }
      }
    }
  }
}
```

### 401 — The key is missing, unknown, disabled or expired.

**Response fields**

| Field | Type | Req. | Description |
| --- | --- | --- | --- |
| `success` | `boolean` | required | Always `false` in error responses. |
| `message` | `string` | required | Error text in the key's language (set through the `X-Locale` header). |
| `data` | `null` — nullable | required | Always `null` when the request is rejected before processing. |

**Example**

```json
{
  "success": false,
  "message": "API key is missing. Provide it in the X-API-KEY header.",
  "data": null
}
```

---

- This page in the browser: https://lumean.app/en/developers/docs/api/get-key
- Full machine-readable reference: https://api.lumean.app/docs/llm.md
