API Keys

Create an API key (admin only)

Creates a new API key scoped to a specific user. The full token is returned only once.

post/users/api-keys

Request body

namestring required

Human-readable name for the key.

userIdstring required

ID of the user this key is scoped to.

expiresAtstring date-time

Optional expiration date. Null means the key never expires.

Response

API key created. Contains the full token (shown only once).

Changes