---
title: "Get Api Key"
method: GET
path: "/v1/api-keys/{token_id}"
tags: ["v1", "protected", "api-keys"]
---

# Get Api Key

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

Get a single API key by ID.

## Path parameters

- `token_id` string, uuid, required

## Response `200`

Successful Response

- APIKeyResponse
  - `access_count` integer, required
  - `created_at` string, required
  - `expires_at` string, nullable, required
  - `id` string, uuid, required
  - `is_active` boolean, required
  - `last_accessed_at` string, nullable, required
  - `name` string, required
  - `token_prefix` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-07-08** `8940d7f77282` — 3 breaking
  - the `created_at` response's property type/format changed from `string`/`date-time` to `string`/`` for status `200`
  - the `expires_at/anyOf[subschema #1]/` response's property type/format changed from `string`/`date-time` to `string`/`` for status `200`
  - the `last_accessed_at/anyOf[subschema #1]/` response's property type/format changed from `string`/`date-time` to `string`/`` for status `200`

[Change history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/api-keys/:token_id/get.md)

---

[API](https://skmtc.dev/agentarea/apis/agentarea-api.md) · [All operations](https://skmtc.dev/agentarea/apis/agentarea-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentarea/agentarea-api/revisions/ce40e8663ec3/schema)
