---
title: "List user API keys"
method: GET
path: "/api/api-keys"
tags: ["v1", "api-keys"]
---

# List user API keys

`GET /api/api-keys`

List all API keys for the user

## Response `200`

Successful Response

- APIKeyInfo[]
  - `user_id` string, required
  - `scopes` APIKeyPermission[], required
  - `type` 'api_key'
  - `created_at` string, date-time, required
  - `expires_at` string, date-time, nullable
  - `last_used_at` string, date-time, nullable
  - `revoked_at` string, date-time, nullable
  - `organization_id` string, nullable
  - `team_id_restriction` string, nullable
  - `id` string, required
  - `name` string, required
  - `head` string, required — The first 8 characters of the key
  - `tail` string, required — The last 8 characters of the key
  - `status` 'ACTIVE' | 'REVOKED' | 'SUSPENDED', required
  - `description` string, nullable
  - `owner_type` string, nullable

## Other responses

- `401` — Authentication required

## Changes

> 92 revisions in range; 27 could not be searched.

- **2026-07-09** `183f82172fec` — 3 info
  - added the optional property `items/organization_id` to the response with the `200` status
  - added the optional property `items/owner_type` to the response with the `200` status
  - added the optional property `items/team_id_restriction` to the response with the `200` status
- **2026-04-30** `8c84efcb3afb` — 3 warning
  - removed the optional property `items/organization_id` from the response with the `200` status
  - removed the optional property `items/owner_type` from the response with the `200` status
  - removed the optional property `items/team_id_restriction` from the response with the `200` status

[Change history](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/changes/api/api-keys/get.md)

---

[API](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server.md) · [All operations](https://skmtc.dev/significant-gravitas/apis/autogpt-agent-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/significant-gravitas/autogpt-agent-server/revisions/5dc375899754/schema)
