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

# List API keys

`GET /api-keys`

Lists all API keys for the workspace associated with the Management API key.

## Query parameters

- `type` 'public' | 'secret' | 'proxy'
- `status` 'enabled' | 'disabled'
- `environment` string
- `cursor` string
- `limit` number

## Headers

- `X-API-Version` string, required

## Response `200`

List of API keys matching the given query.

- ApiKeysPaginatedResponseDtoV2
  - `data` ApiKeyResponseDtoV2[], required
    - `id` string, required — Auto-generated ID for an API key
    - `name` string, required — API key name
    - `description` string — API key description
    - `status` 'enabled' | 'disabled', required — API key status, indicates if an API keys is enabled or disabled.
    - `environment` object, nullable, required — ID of an environment the API key belongs to.
    - `type` 'public' | 'secret' | 'proxy', required — Type of an API key.
    - `token` string — Value of an API key. This field is immutable, and for secret keys it's only visible upon creation.
    - `rate_limit` number, required — Current limit in requests-per-second for the API key.
    - `created_at` string, date-time, required — Date when API key was created.
    - `disabled_at` string, date-time — Date when API key was disabled.
  - `metadata` PaginationMetadataV2, required
    - `pagination` PaginationDataV2, required
      - `next_cursor` string, nullable, required — Cursor token to be used to get the next page of results.
      - `prev_cursor` string, nullable, required — Cursor token used to get the previous page of results.

## Other responses

- `401` — Error: Invalid API key.
- `429` — Error: API key has exceeded its rate limit.

---

[API](https://skmtc.net/fingerprint/apis/management-api.md) · [All operations](https://skmtc.net/fingerprint/apis/management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/fingerprint/management-api/versions/b17eccec9d47/schema)
