---
title: "List Api Keys"
method: GET
path: "/admin/keys"
tags: ["Admin"]
---

# List Api Keys

`GET /admin/keys`

## Request

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

List API keys, optionally scoped to a single user.

Returns the keys with the raw secret REDACTED — we keep the first
8 chars (``kol_xxxxxxxx``) for visual matching and a short suffix,
nothing more. The full key was returned exactly once at creation
time; the operator (or in the user-facing UX, the user) was meant
to copy it then. Lost keys must be revoked + replaced.

## Query parameters

- `user_id` string, nullable: Filter to one user's keys
- `include_revoked` boolean

## Headers

- `x-admin-secret` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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