API Keys
Create API key
Create a new API key. Returns the plain text token which is only shown once.
POST
Request
The API key name. Maximum 255 characters.
Optional expiration. Any date string the server can parse (e.g.
2026-12-31, 2026-12-31T15:00:00Z), must be after today. Omit for a non-expiring key.Response
Returns201 with the new key plus the plain token. The plain token is shown only here — store it immediately.
Same shape as one entry in
GET /api-keys — id, name, last_used_at, expires_at, created_at (all timestamps ISO 8601).The opaque bearer token to send in
Authorization: Bearer …. Never returned again.
