POST /keys
Create a personal API key. The full token is returned exactly once in the response.string
required
Human-readable label for the key.
string (Go duration)
Optional lifetime, for example
"720h" for 30 days. Omit for a non-expiring key. Must be a positive Go duration.string
Stable identifier for the key.
string
The name you assigned.
string
The user the key acts as.
string
The full
lsk_... token. Returned only in this response.GET /keys
List all keys visible to the caller, including expired and revoked keys. Administrators see every user’s keys.array
Key metadata:
id, name, username, created_at, and optional expires_at, last_used_at, and revoked_at. The token itself is never returned.DELETE /keys/
Revoke a key immediately. Non-admin callers can only revoke their own keys.API keys act as their creator. Adjusting the creator’s roles or attributes changes what every one of their keys can do, without rotation.