---
title: "Get API key by ID"
method: GET
path: "/api-keys/{id}"
tags: ["API Keys"]
---

# Get API key by ID

`GET /api-keys/{id}`

Retrieves an API key by its ID.

## Path parameters

- `id` string, required

## Response `200`

OK

- GetApiKeyResponse
  - `api_key` ApiKey, required
    - `created_at` string, date-time, required
    - `enabled` boolean, required
    - `expires_at` string, date-time, nullable
    - `id` string, required
    - `key_hash` string, required
    - `last` string, required
    - `last_requested_at` string, date-time, nullable
    - `metadata` object, nullable
    - `name` string, required
    - `owner_id` string, required
    - `owner_type` string, required
    - `permissions` string[], nullable
    - `prefix` string, nullable
    - `rate_limit_enabled` boolean, required
    - `start` string, required
    - `updated_at` string, date-time, required

## Changes

- **2026-07-09** `dad8e2644615` — 1 info
  - endpoint added
- **2026-07-08** `d2f9387037c5` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/authula/apis/authula-api/changes/api-keys/:id/get.md)

---

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