DocsAPI ReferenceList all API keys
GET
/api/v1/api-keysReturns metadata for every API key in the workspace. Raw secrets are never exposed — only the `prefix` (first 7 chars) is returned for identification.
Headers
X-API-KeystringrequiredYour workspace API key.
Responses
200Array of API key metadata objects.
[
{
"id": 42,
"name": "Production Bot Key",
"prefix": "srvk_a1b2",
"workspace_id": "aaaaaaaa-0000-0000-0000-000000000001",
"created_at": "2026-05-12T10:00:00Z",
"last_used_at": "2026-05-12T11:30:00Z",
"expires_at": null
}
]401Missing or invalid API key.
Try it live
API Configurationglobal · all endpoints
GET
https://api.serveka.com/api/v1/api-keyscurl -X GET 'https://api.serveka.com/api/v1/api-keys' \