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

# List user's API keys

`GET /api-keys`

## Request

- Base URL: `https://statusstack.com/api`
- URL: `https://statusstack.com/api/api-keys`
- Auth: HTTP bearer

The authenticated user's live API keys, newest first. Revoked keys are omitted, as
are keys on a team or organization the user can no longer access.

## Response `200`

List of API keys

- object
  - `data` ApiKey[], required
    - `id` string, uuid
    - `name` string
    - `version` string: API version the key targets, `v` followed by a number (e.g. `v1`).
    - `permissions` string[]
    - `expires_at` string, date-time, nullable
    - `last_used_at` string, date-time, nullable
    - `created_at` string, date-time

## Other responses

- `401`: No valid Sanctum session or token. Laravel's own `{message}` body.

---

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