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

# List API keys

`GET /v1/api-keys`

## Request

- Base URL: `https://smtpfa.st/api`
- URL: `https://smtpfa.st/api/v1/api-keys`
- Auth: HTTP bearer

Return all API keys for the current account. The full key value is never included; only the prefix is shown.

## Response `200`

List of API keys

- object
  - `object` string, required
  - `has_more` boolean, required
  - `data` ApiKey[], required
    - `id` string, required
    - `name` string, required
    - `prefix` string, required
    - `scopes` string[], required
    - `created_at` string, date-time, required
    - `last_used_at` string, date-time, nullable
    - `revoked_at` string, date-time, nullable
    - `expires_at` string, date-time, nullable: Set for connected-app keys, which rotate.
    - `grant_expires_at` string, date-time, nullable: When a connected app's grant ends.

## Other responses

- `401`: Invalid or missing API key
- `429`: Rate limit exceeded - retry after the period indicated in the Retry-After header
- `500`: Internal server error

---

[API](https://skmtc.dev/smtpfa/apis/smtpfast-api.md) · [All operations](https://skmtc.dev/smtpfa/apis/smtpfast-api/llms.txt) · [OpenAPI document](https://skmtc.dev/smtpfa/apis/smtpfast-api/revisions/79dda742f53e?raw)
