Skip to main content
GET
/
api
/
keys
List API keys
curl --request GET \
  --url http://localhost:8000/api/keys \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "key_abc123",
    "name": "Production Key",
    "key_preview": "mk_live_...x7f9",
    "scopes": [
      "read"
    ],
    "created_at": "2024-12-01T10:00:00Z",
    "last_used_at": "2025-01-17T14:32:10Z"
  },
  {
    "id": "key_def456",
    "name": "Development Key",
    "key_preview": "mk_live_...k3m2",
    "scopes": [
      "read",
      "write"
    ],
    "created_at": "2025-01-05T08:15:00Z",
    "last_used_at": "2025-01-17T12:00:00Z"
  }
]

Authorizations

Authorization
string
header
required

Use your API key as a Bearer token. Example: Authorization: Bearer mk_live_...

Response

A list of the user's API keys.

id
string

Unique key identifier.

Example:

"key_abc123"

name
string

Human-readable name for the key.

Example:

"Production Key"

key_preview
string

Partially masked key value for identification.

Example:

"mk_live_...x7f9"

scopes
enum<string>[]

Permissions granted to this key.

Available options:
read,
write
created_at
string<date-time>

When the key was created.

last_used_at
string<date-time> | null

When the key was last used for authentication.