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

# List API keys

`GET /api/keys`

## Request

- Base URL: `https://www.zestio.de`
- URL: `https://www.zestio.de/api/keys`
- Auth: API key in cookie `sb-access-token`

Retrieve all API keys for the authenticated user.

## Response `200`

API keys retrieved

- ApiKeysResponse
  - `keys` ApiKey[]
    - `id` string
    - `name` string
    - `keyPrefix` string
    - `lastUsedAt` string, date-time, nullable
    - `createdAt` string, date-time
    - `isActive` boolean

## Other responses

- `401`: Unauthorized - invalid or missing credentials
- `500`: Internal server error

---

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