---
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.mentio.dev`
- URL: `https://api.mentio.dev/v1/api-keys`
- Auth: HTTP bearer

## Response `200`

Every key, newest first, without the secret part

- object
  - `data` object[], required
    - `id` string, required: Key id (key_...).
    - `name` string, required
    - `prefix` string, required: The first characters of the key, to tell keys apart.
    - `scope` 'read' | 'write', required: read: GET only. write: everything.
    - `createdAt` string, required: ISO 8601 timestamp, UTC.
    - `lastUsedAt` string, nullable, required: ISO 8601 timestamp, UTC.
    - `expiresAt` string, nullable, required: When the key stops working; null for a key that never expires. An expired key stays listed until revoked.

## Other responses

- `401`: Missing or invalid API key

---

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