---
title: "List API keys"
method: GET
path: "/api/v1/keys"
---

# List API keys

`GET /api/v1/keys`

## Request

- Base URL: `https://api.virga.dev`
- URL: `https://api.virga.dev/api/v1/keys`
- Auth: API key in header `X-API-Key`

List all API keys for the authenticated account.

## Response `200`

List of keys

- object
  - `keys` object[]
    - `keyPrefix` string
    - `name` string
    - `environment` string
    - `status` string
    - `createdAt` number
    - `lastUsedAt` number, nullable

## Other responses

- `401`: Missing or invalid API key

---

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