Skip to main content
POST
Create API token

Body

application/json

Request to create a new API token.

Request to create a new API token.

displayName
string
required

Human-readable display name for the API token (1-100 characters).

Required string length: 1 - 100
expiresIn
required

When the token expires.

Allowed value: "never"

Response

API token with JWT token string (only returned on creation).

API token with JWT token string (only returned on creation).

displayName
string
required

Human-readable display name for the API token.

id
string<uuid>
required

Unique identifier for the token.

issuedAt
string<date-time>
required

Timestamp of token creation.

sessionType
required

Type of token (web, mobile, api, etc.).

Allowed value: "web"
token
string
required

The JWT token string (only shown once on creation).

expiredAt
string<date-time>

Timestamp when the token expires (omitted = never expires).