---
title: "List keys (secret is not returned)"
method: GET
path: "/api/v2/api-keys"
tags: ["v2 API Keys"]
---

# List keys (secret is not returned)

`GET /api/v2/api-keys`

## Request

- Base URL: `https://pdf2md.dev`
- URL: `https://pdf2md.dev/api/v2/api-keys`
- Auth: one of:
  - API key in cookie `p2m_session`
  - HTTP bearer

## Response `200`

Keys

- object
  - `items` V2ApiKey[], required
    - `id` string, uuid, required
    - `name` string, required
    - `prefix` string, required
    - `scopes` string[], required
    - `last_used_at` string, date-time, nullable
    - `expires_at` string, date-time, nullable
    - `created_at` string, date-time, required
  - `limit` integer: Plan's api_keys_limit (EP-023 §7.3)
  - `used` integer: Active (non-revoked) keys

## Other responses

- `401`: Missing/invalid API key or session
- `403`: Device is not linked to an account

---

[API](https://skmtc.dev/pdf2md/apis/pdf-to-markdown-api-facade.md) · [All operations](https://skmtc.dev/pdf2md/apis/pdf-to-markdown-api-facade/llms.txt) · [OpenAPI document](https://skmtc.dev/pdf2md/apis/pdf-to-markdown-api-facade/revisions/4636782fb8b6?raw)
