Skip to main content
POST
Create an API token

Autorisations

authjs.session-token
string
cookie
requis

Dashboard browser session.

Corps

application/json
name
string
requis

Token name (1–100 characters).

organizationId
string<uuid>

Restrict the token to one organization; omit for all.

expiresInDays
integer

Lifetime in days (1–365); omit for no expiration.

Plage requise: 1 <= x <= 365

Réponse

token (shown once) and apiToken metadata.

The response is of type object.