---
title: "List API keys"
method: GET
path: "/api/api-keys"
tags: ["API Keys"]
---

# List API keys

`GET /api/api-keys`

## Request

- Base URL: `https://api.zvid.io`
- URL: `https://api.zvid.io/api/api-keys`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Retrieve all active API keys for the authenticated user

## Response `200`

API keys retrieved successfully

- ApiKeyList
  - `apiKeys` ApiKey[], required
    - `id` integer, required
    - `name` string, required
    - `keyPrefix` string, required: Stored prefix of the key (first characters, used for identification)
    - `createdAt` string, date-time, required
    - `lastUsedAt` string, date-time, nullable
    - `requestsCount` integer, required: Total number of requests made with this key
    - `isActive` boolean, required: Whether the key is active (this list only returns active keys)

## Other responses

- `401`: Unauthorized
- `500`: Internal server error

---

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