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

# List API keys

`GET /api-keys`

## Request

- Base URL: `https://saturnsql.com/api`
- URL: `https://saturnsql.com/api/api-keys`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Lists the current company's active (non-revoked) API keys. Only the display prefix is shown — the secret is never returned after creation. Requires a session token.

## Response `200`

Keys

- object
  - `keys` ApiKey[]
    - `id` string
    - `name` string
    - `prefix` string: First chars of the key, for display (e.g. sat_live_ab12cd34).
    - `scopes` string[]
    - `expiresAt` string, date-time, nullable
    - `lastUsedAt` string, date-time, nullable
    - `revokedAt` string, date-time, nullable
    - `createdAt` string, date-time

## Other responses

- `401`: Bad or missing credentials

---

[API](https://skmtc.dev/saturnsql/apis/saturnsql-api.md) · [All operations](https://skmtc.dev/saturnsql/apis/saturnsql-api/llms.txt) · [OpenAPI document](https://skmtc.dev/saturnsql/apis/saturnsql-api/revisions/90a3e54ad115?raw)
