Authentication
Creating API Keys
API key management requires an admin-role key.
curl -X POST http://localhost:8000/v1/admin/keys \
-H "x-api-key: your-admin-key" \
-H "Content-Type: application/json" \
-d '{"name": "production-app", "role": "readwrite"}'
Response:
{
"status": "success",
"data": {
"id": 2,
"name": "production-app",
"key": "sk-rw-abc123...",
"role": "readwrite",
"created_at": "2024-01-15T10:00:00Z"
}
}
warning
The API key value is only shown once at creation time. Store it securely.
Listing API Keys
curl http://localhost:8000/v1/admin/keys \
-H "x-api-key: your-admin-key"