---
title: "Get Api Keys"
method: GET
path: "/api/v1/auth/api-key"
tags: ["auth"]
---

# Get Api Keys

`GET /api/v1/auth/api-key`

## Request

- Base URL: `https://api.peil.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.peil.app/api/v1/auth/api-key`
- Auth: OAuth 2 (password, token URL `/api/v1/auth/jwt/login`)

Return metadata for all API keys belonging to the current user.

## Response `200`

Successful Response

- ApiKeyMeta[]
  - `id` integer, required
  - `name` string, required
  - `prefix` string, required
  - `scopes` string[], required
  - `expires_at` string, date-time, nullable, required
  - `created_at` string, date-time, required
  - `last_used_at` string, date-time, nullable, required

---

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