/api-key/list?projectId=List a project's API keysA project's API keys. Requires membership on the project. Each key carries a value field with the raw key string (or null if it was issued before plaintext storage was added), but only for a project owner or admin; a viewer gets every other field with value omitted entirely.
Authentication: Bearer JWT (project member)
Input — query and path parameters
projectIdstring required- Project id (query parameter)
Output — example response (200)
{
"apiKeys": [
{
"id": "ugtp_project_api_key_a1b2c3d4e5f6",
"name": "Server key",
"keyPrefix": "ugtp2_0123",
"scopes": [
"full_access"
],
"isActive": true,
"expiresAt": null,
"lastUsedAt": "2026-06-18T12:00:00.000Z",
"createdAt": "2026-06-18T12:00:00.000Z",
"revokedAt": null,
"value": "ugtp2_0123456789abcdef0123456789abcdef"
}
]
}Output — every status this endpoint answers with
| Status | When |
|---|---|
200 | API keys (value present, owner/admin only) |
400 | Invalid request body or query parameters |
401 | Missing or invalid credentials |
403 | Authenticated but not permitted |