Skip to main content
POST
Generate an API key.

Authorizations

Authorization
string
header
required

Bearer JWT token or API Key (sk-*).

Body

application/json
name
string
required

You need to provide name of the user.

restricted
boolean
required

You can provide if key should be whitelisted.

metadata
object | null

Optional resource metadata. Top-level keys starting with "__" are reserved for backend use.

whitelist
object[] | null

Use an empty array or null when restricted is false; provide at least one complete entry when restricted is true.

expireAt
string<date-time>

Optional API key expiration timestamp. When provided, it must be at least four hours in the future.

Response

OK.

Last modified on September 5, 2026