---
title: "List API keys with cursor-based pagination and optional filtering"
method: GET
path: "/api/api-keys"
tags: ["API Keys"]
---

# List API keys with cursor-based pagination and optional filtering

`GET /api/api-keys`

# Errors
Returns error if API keys database query fails or connection issues occur

## Query parameters

- `offset` string, uuid, nullable
- `limit` integer, nullable
- `isActive` boolean, nullable

## Response `200`

API keys list retrieved

- ApiKeyResponse[] — List of API keys for a user
  - `createdAt` string, date-time, nullable — When this API key was originally created
  - `expiresAt` string, date-time, nullable — Expiration timestamp after which key becomes invalid
  - `id` string, uuid, required — Unique identifier for this API key in responses
  - `isActive` boolean, required — Current activation status of this API key
  - `keyPrefix` string, required — Key prefix for visual identification in API key lists
  - `lastUsedAt` string, date-time, nullable — Timestamp when the key was last used
  - `name` string, required — Descriptive name for this API key
  - `permissions` string[], required — Permissions granted to this API key for resource access
  - `updatedAt` string, date-time, nullable — API key last update timestamp
  - `userId` string, uuid, required — Owner user identifier

## Other responses

- `401` — Authentication required to list API keys
- `500` — Server error during API keys listing

---

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