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

# List API keys

`GET /v1/api-keys`

## Request

- Base URL: `https://api.astrocal.dev`
- URL: `https://api.astrocal.dev/v1/api-keys`
- Auth: HTTP bearer

Lists all API keys for the authenticated organization. Full keys are never shown — only the prefix for identification.

## Response `200`

API keys list

- object
  - `data` object[], required
    - `id` string, required
    - `name` string, required
    - `key_prefix` string, required
    - `mode` 'live' | 'test', required
    - `last_used_at` string, nullable, required
    - `expires_at` string, nullable, required
    - `revoked_at` string, nullable, required
    - `created_at` string, required

## Other responses

- `401`: Unauthorized

---

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