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

# List keys

`GET /api/keys`

## Request

- Base URL: `https://api.mymarky.ai`
- URL: `https://api.mymarky.ai/api/keys`
- Auth: HTTP bearer

List the API keys for the specified org, newest first. Use cursor for pagination.

Errors:
    401 authentication_required: The login token is missing, invalid, or expired.
    403 permission_denied: You are not a member of this org.

## Query parameters

- `org_id` string, required: Organization ID to list keys for
- `limit` integer: Max results per page (1-100)
- `cursor` string, nullable: The `next` value from the previous page's response, passed back verbatim. Leave it out for the first page. When `next` is null you have every result.

## Headers

- `Marky-Version` '2026-04-08' | '2026-07-17' | '2026-08-02' | '2026-08-04' | '2026-08-06'

## Response `200`

Successful Response

- PageApiKeyListItem
  - `items` ApiKeyListItem[], required: This page of results.
    - `id` string, required
    - `name` string, required
    - `key_prefix` string, required
    - `last_used_at` string, nullable, required
    - `revoked_at` string, nullable, required
    - `created_at` string, required
  - `next` string, nullable: Opaque cursor for the next page; null when there are no more. Pass it back verbatim as ?cursor=. Do not construct or decode it.

## Other responses

- `400`: Bad request — the input was malformed or otherwise invalid.
- `401`: Authentication failed — the API key is missing or invalid.
- `422`: Validation error — one or more fields failed validation.
- `429`: Rate limited — retry after the window resets (see Retry-After).
- `500`: Server error — something failed on our side; retry or quote X-Request-Id.

---

[API](https://skmtc.dev/mymarky/apis/marky-public-api.md) · [All operations](https://skmtc.dev/mymarky/apis/marky-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mymarky/apis/marky-public-api/revisions/25aeacae455c?raw)
