---
title: "List User Api Keys"
method: GET
path: "/api/user/api-keys"
tags: ["User"]
---

# List User Api Keys

`GET /api/user/api-keys`

## Request

- Base URL: `https://api.agentstack.tech` (the document declares no server; this is the origin it was published from)
- URL: `https://api.agentstack.tech/api/user/api-keys`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

List all user API keys

Returns a list of all API keys for the authenticated user.

## Response `200`

Successful Response

- UserAPIKeyResponse[]
  - `key_id` string, required
  - `name` string, required
  - `created_at` string, nullable, required
  - `last_used_at` string, nullable, required
  - `expires_at` string, nullable, required
  - `status` string, required
  - `key_preview` string, nullable
  - `actor_kind` string, nullable
  - `resource_scope` object, nullable
  - `service_caps` string[], nullable
  - `preset` string, nullable
  - `pat_kind` string, nullable
  - `oauth_client_id` string, nullable

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Unprocessable Entity
- `429`: Too Many Requests
- `500`: Internal Server Error

---

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