---
title: "List API keys"
method: GET
path: "/v2/api-keys"
tags: ["API Keys"]
---

# List API keys

`GET /v2/api-keys`

## Request

- Base URL: `https://api.lilt.com`
- URL: `https://api.lilt.com/v2/api-keys`
- Auth: HTTP basic

Retrieve all non-deleted API keys scoped to the caller's current organization.

Callers with the `apiKey.read` permission see all keys in the organization; all other callers see only their own keys. The plaintext secret is never returned by this endpoint — only the key prefix is shown.

## Response `200`

An array of API key objects.

- ApiKey[]
  - `id` string, required: The unique identifier for the API key.
  - `name` string, required: A human-readable label for the key.
  - `prefix` string, required: The first 8 characters of the key's random portion — the part that follows the `lilt_` prefix. Safe to display.
  - `createdAt` string, date-time, required: ISO-8601 timestamp when the key was created.
  - `expiresAt` string, date-time, nullable: ISO-8601 timestamp when the key expires, or null if it does not expire.
  - `lastUsedAt` string, date-time, nullable: ISO-8601 timestamp of the last successful authentication, or null.
  - `revokedAt` string, date-time, nullable: ISO-8601 timestamp when the key was revoked, or null if still active.
  - `ownerEmail` string, nullable: Email address of the user who owns the key. Returned by the list endpoint; omitted by `GET /v2/api-keys/{id}`.
  - `ownerUserId` integer, nullable: Numeric identifier of the user who owns the key. Returned by the list endpoint; omitted by `GET /v2/api-keys/{id}`.

## Other responses

- `400`: The authenticated user has no active organization.
- `401`: The request is not authenticated.
- `default`: Unexpected error.

## Changes

- **2026-11-03** `99b66cc7808d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/lilt/apis/lilt-api/changes/v2/api-keys/get.md)

---

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