API ReferenceAPI Keys
List API keys
GET /api/v1/user/api-keys — list active (or all) API keys in your organization.
GET /api/v1/user/api-keysList API keys for your organization. The full key value is never returned — only key_prefix (first 8 chars) for identification.
Query parameters
| Param | Type | Default | Notes |
|---|---|---|---|
include_archived | bool | false | Set true to include revoked keys. |
Response
[
{
"id": 7,
"name": "Production server",
"key_prefix": "zsk_a1b2",
"is_active": true,
"created_at": "2026-06-01T10:00:00Z",
"last_used_at": "2026-06-16T09:32:01Z",
"archived_at": null
}
]Use `key_prefix` for in-product display
Safe to render in admin dashboards or audit logs — it identifies a key without exposing the secret.
Examples
curl "https://dashboard.zoxa.ai/api/v1/user/api-keys?include_archived=false" \
-H "X-API-Key: zsk_..."Errors
| Status | detail | When |
|---|---|---|
400 | "No organization selected" | Auth missing org. |