---
title: "List the caller's API keys"
method: GET
path: "/api/keys"
---

# List the caller's API keys

`GET /api/keys`

## Request

- Base URL: `https://api.peelaway.io`
- URL: `https://api.peelaway.io/api/keys`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `better-auth.session_token`

Returns metadata for every key (never the secret). Authenticated by the session cookie from sign-up/sign-in or by a pk_ bearer key.

## Response `200`

The caller's keys

- ApiKeyList
  - `keys` ApiKey[], required
    - `id` string
    - `name` string
    - `prefix` string
    - `lastUsedAt` string, date-time, nullable
    - `createdAt` string, date-time

## Other responses

- `401`: Authentication required

---

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