v38

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-1793196344.2 KB
Authentication

Get a user token

Use this endpoint to create a user token for a specific user. This token can be safely passed to your user-facing front-end.

post/auth/user_token

Request body

user_idstring required
originstring nullable

Origin of the request, used for CSRF protection. If set, the token will only be valid for requests originating from this origin.

expires_instring nullable

Token lifetime, e.g., '30m', '2h', '1d'. Defaults to 24 hours if not provided.

Example request

{
  "expires_in": "30m"
}

Response

Successful Response

tokenstring required
expires_atstring date-time required