API Keys
Get a specific API key by ID
Errors
Returns error if API key not found, access denied, or database connection error
get/api/api-keys/{api_key_id}
Path parameters
api_key_idstring uuid required
UUID of the API key to retrieve
Response
API key retrieved
Example response
{
"createdAt": "2023-01-01T00:00:00Z",
"expiresAt": "2024-01-01T00:00:00Z",
"id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"isActive": true,
"keyPrefix": "pk_live_",
"lastUsedAt": "2023-01-01T12:00:00Z",
"name": "Production API Key",
"permissions": [
"read:posts",
"write:posts"
],
"updatedAt": "2023-01-01T12:00:00Z",
"userId": "b2c3d4e5-6f78-9012-bcde-f12345678901"
}