REST API Reference
API Keys Endpoints
Manage programmatically generated API keys, view active key hashes, and revoke stale credentials.
POST
/api/api-keys
Generates a new raw API key prefixed with cz_live_. The raw secret is only displayed once upon creation.
Request
curl -X POST https://cloudizero.wismannur.pro/api/api-keys \
-H "Cookie: authjs.session-token=..." \
-H "Content-Type: application/json" \
-d '{
"name": "Production Backend Worker",
"projectId": null
}'Response (200 OK)
{
"id": "e45b1287-...",
"name": "Production Backend Worker",
"key": "cz_live_9f8ab2e4b830d9...",
"projectId": null,
"createdAt": "2026-10-12T12:00:00Z"
}One-time Display
The plain-text API key is never stored in the database. Store it immediately in a secure vault or environment manager.