---
title: "List API keys"
method: GET
path: "/spaces/{space_id}/api_keys"
---

# List API keys

`GET /spaces/{space_id}/api_keys`

Lists all API keys for the specified space.
Requires user authentication (JWT). API keys cannot list other API keys.

## Path parameters

- `space_id` string, required

## Response `200`

List of API keys

- ApiKey[]
  - `prefix` string, required — Stable prefix identifier for the API key (starts with `gt_`), identifying the key without exposing the secret.
  - `name` string, required — User-provided label for the API key.
  - `created_at` string, date-time, required — Time the API key was created.

## Other responses

- `default` — Error response

---

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