---
title: "List workspace API keys"
method: GET
path: "/api/workspaces/{wid}/api-keys"
tags: ["Workspace API Keys"]
---

# List workspace API keys

`GET /api/workspaces/{wid}/api-keys`

Returns prefix-only metadata. Secrets are never included.

## Path parameters

- `wid` string, required

## Response `200`

OK

- WorkspaceAPIKey[]
  - `created_at` string, required
  - `expires_at` string, required
  - `id` string, required
  - `last_used_at` string, nullable
  - `name` string, required
  - `prefix` string, required
  - `revoked_at` string, nullable
  - `scopes` string[], required

## Other responses

- `403` — not a member
- `500` — internal error

## Changes

> 20 revisions in range; 1 could not be searched.

- **2026-05-22** `7ddccc8c8dd1` — 1 info
  - added the required property `items/expires_at` to the response with the `200` status
- **2026-05-22** `2329d95e1b7f` — 1 info
  - endpoint added
- **2026-05-22** `1ba39f384b63` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/agentserver/apis/agentserver-api/changes/api/workspaces/:wid/api-keys/get.md)

---

[API](https://skmtc.dev/agentserver/apis/agentserver-api.md) · [All operations](https://skmtc.dev/agentserver/apis/agentserver-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentserver/agentserver-api/revisions/e8c329825b4e/schema)
