---
title: "Get an API key"
method: GET
path: "/keys/{key_id}"
tags: ["API Keys"]
---

# Get an API key

`GET /keys/{key_id}`

## Request

- Base URL: `https://api-docs.jackhamr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.jackhamr.ai/keys/{key_id}`
- Auth: none declared

Return a single API key (masked prefix only).

Returns 404 when the key does not exist or is not owned by the
caller; the org scope is already enforced by ``require_org_role``
and the service's ``user_id`` filter.

## Path parameters

- `key_id` string, required

## Response `200`

Successful Response

- ApiKeyOut: A masked API key as returned by ``GET /api/v1/keys``. Never contains the full key — only the ``key_prefix`` used for display (``jk_live_aBcD…``).
  - `id` string, required
  - `label` string, required
  - `key_prefix` string, required
  - `status` string, required
  - `created_at` string, date-time, required
  - `last_used_at` string, date-time, nullable
  - `expires_at` string, date-time, nullable
  - `revoked_at` string, date-time, nullable
  - `scopes` string[], nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jackhamr/apis/jackhamr-api.md) · [All operations](https://skmtc.dev/jackhamr/apis/jackhamr-api/llms.txt) · [OpenAPI document](https://skmtc.dev/jackhamr/apis/jackhamr-api/revisions/f75d221481d8?raw)
