Skip to Content
Docs

Create a token

POST
/api/user/tokens

The plaintext token is returned here and never again.

Not available to personal access tokens; call it from a signed-in session.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/user/tokens'
Example Response200
Empty