Auth API¶
Login¶
Issue a short-lived JWT.
Request¶
Response¶
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expires_at": "2026-05-29T12:00:00Z",
"role": "operator"
}
Use the token value in subsequent requests: Authorization: Bearer eyJ...
Create API key¶
Create a managed API key (sk_ prefix). Requires admin role.
Request¶
Response¶
{
"id": "ak_abc123",
"name": "ci-bot",
"key": "sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"role": "operator",
"created_at": "2026-05-28T10:00:00Z"
}
Save the key
The key value is shown only once. Store it securely — it cannot be retrieved later.
List API keys¶
Response¶
{
"keys": [
{
"id": "ak_abc123",
"name": "ci-bot",
"role": "operator",
"created_at": "2026-05-28T10:00:00Z",
"last_used_at": "2026-05-28T11:30:00Z"
}
]
}
The plaintext key is never returned after creation.