---
title: "List API Keys"
method: GET
path: "/admin/api_keys"
tags: ["API Keys"]
---

# List API Keys

`GET /admin/api_keys`

List all keys for this workspace.

## Query parameters

- `cursor` string — Cursor for the page you want to retrieve.
- `limit` integer — The maximum number of results to return.

## Headers

- `authorization` string — Admin API bearer token.
- `Pinwheel-Version` '2025-07-08' | '2023-11-22' | '2023-07-18' | '2023-04-18' | '2022-09-09' | '2022-06-22' | '2022-03-02', required

## Response `200`

OK

- object
  - `meta` PaginationMeta, required
    - `count` integer — Number of objects returned.
    - `next_cursor` string — Pointer to the next page of results.
  - `data` ListAPIKeyResponseData[], required
    - `mode` 'sandbox' | 'development' | 'production', required — The mode that the Admin API token is authorized for.
    - `key` string, required — The public token that refers to your API key, as distinct from the API Secret.
    - `expires_at` string, date-time — Timestamp used to set when this key automatically expires.
    - `created_at` string, date-time, required — ISO 8601 timestamp of created time.
    - `last_used_at` string, date — Date the API key was last used in a Pinwheel API request. Null if the key hasn't been used.
    - `is_active` boolean, required — If true, the API key can be used in Pinwheel API requests. Otherwise, the key is no longer useable.
    - `revoked_at` string, date-time — Timestamp of when this key was revoked.

---

[API](https://skmtc.net/getpinwheel/apis/pinwheel.md) · [All operations](https://skmtc.net/getpinwheel/apis/pinwheel/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getpinwheel/pinwheel/revisions/8ef86dd4902e/schema)
