---
title: "The account's API keys. Revoked keys are not listed."
method: GET
path: "/api/v1/keys"
tags: ["keys"]
---

# The account's API keys. Revoked keys are not listed.

`GET /api/v1/keys`

## Request

- Base URL: `https://harvis.dev`
- URL: `https://harvis.dev/api/v1/keys`
- Auth: API key in cookie `better-auth.session_token`

## Response `200`

The account's API keys. Revoked keys are not listed.

- ApiKeyList
  - `keys` ApiKey[], required
    - `id` string, required
    - `name` string, required
    - `prefix` string, required: The first characters of the token, so a key can be recognised in a list.
    - `lastUsedAt` string, date-time, nullable, required: Written at most once an hour, so it lags by up to that.
    - `createdAt` string, date-time, required

## Other responses

- `401`: `unauthorized`
- `403`: `crossOrigin`, `sessionRequired`

---

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