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

# List all API keys

`GET /api-keys`

## Request

- Base URL: `https://api.withpersona.com/api/v1`
- URL: `https://api.withpersona.com/api/v1/api-keys`
- Auth: HTTP bearer

Returns a list of your organization's API keys. Results are returned in reverse chronological order, with the most recently created objects first.

## Query parameters

- `page` ApiKeysGetParametersPage
  - `after` string: Object ID for pagination cursor
  - `before` string: Object ID for pagination cursor
  - `size` number, double: Limit on the number of objects returned
- `fields` object
- `filter` ApiKeysGetParametersFilter
  - `name` string: Filter API keys by name

## Headers

- `Key-Inflection` 'camel' | 'kebab' | 'snake'
- `Idempotency-Key` string
- `Persona-Version` '2026-09-29' | '2025-12-08' | '2025-10-27' | '2023-01-05' | '2022-09-01' | '2021-08-18' | '2021-07-05' | '2021-02-21' | '2020-05-18': Server API version. More info on versioning can be found [here](https://docs.withpersona.com/versioning).

## Response `200`

This endpoint returns a collection of API key objects.

- APIKeysListAllApiKeysResponse200
  - `data` ApiKey[], required: An array of API Keys
    - `type` 'api-key'
    - `id` string
    - `attributes` ApiKeySharedAttributes
      - `name` string
      - `note` string, nullable
      - `api-version` '2026-09-29' | '2025-12-08' | '2025-10-27' | '2023-01-05' | '2022-09-01' | '2021-08-18' | '2021-07-05' | '2021-02-21' | '2020-05-18': Server API version. More info on versioning can be found [here](https://docs.withpersona.com/versioning).
      - `api-key-inflection` string
      - `api-attributes-blocklist` string[]
      - `permissions` string[]
      - `ip-address-allowlist` string[]
      - `file-access-token-expires-in` integer
      - `last-used-at` string, nullable
      - `expires-at` string, nullable
      - `created-at` string, date-time
  - `links` ApiKeysGetResponsesContentApplicationJsonSchemaLinks, required
    - `next` string, nullable, required
    - `prev` string, nullable, required

## Other responses

- `400`: The request was unacceptable, often due to invalid parameters.
- `401`: An invalid API key was provided.
- `403`: The given API key doesn’t have permissions to perform the request or a quota has been exceeded.
- `429`: Your organization’s rate limit has been exceeded. We recommend an exponential backoff on requests.

---

[API](https://skmtc.dev/withpersona/apis/withpersona-4.md) - [All operations](https://skmtc.dev/withpersona/apis/withpersona-4/llms.txt) - [OpenAPI document](https://skmtc.dev/withpersona/apis/withpersona-4/revisions/2eddd7dae374?raw)
