---
title: "Get API key"
method: GET
path: "/v1/api-keys/{apiKeyId}"
tags: ["API Keys"]
---

# Get API key

`GET /v1/api-keys/{apiKeyId}`

Returns a single API key including the full unmasked `token`. Useful for retrieving a stored token by id without rotating it.

## Path parameters

- `apiKeyId` string, required — API-key identifier.

## Response `200`

API key

- ApiKey
  - `id` string, required — Stable API-key identifier.
  - `organizationId` string, required — Organization that owns this API key.
  - `name` string, required — Human-readable name.
  - `token` string, required — The full API key token. Returned by create / get / update — store it securely; treat it as a password.
  - `lastUsedAt` string, nullable, required — ISO-8601 timestamp of the most recent successful authentication. `null` until first use.
  - `deletedAt` string, nullable, required — ISO-8601 timestamp at which the key was revoked. `null` while the key is active.
  - `createdAt` string, required — ISO-8601 timestamp of creation.
  - `updatedAt` string, required — ISO-8601 timestamp of the last metadata update (rename, revoke, last-used touch).

## Other responses

- `400` — Validation error
- `401` — Unauthorized
- `404` — Not found

---

[API](https://skmtc.net/latitude-dev/apis/latitude.md) · [All operations](https://skmtc.net/latitude-dev/apis/latitude/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/latitude-dev/latitude/versions/6a8789c59a5c/schema)
