Skip to content

Register a new API token

PUT
/register

Creates and returns a new API token. Requires admin privileges.

Authorizations

ApiKeyAuth

API token obtained via the /register endpoint. Pass as the X-Api-Token header on every request.

Type
API Key (header: X-Api-Token)

Request Body

application/json
JSON
{
  
"admin": false
}

Responses

Token created. The raw token string is returned as plain text.

text/plain
JSON
"a3f9b2c1d4e5f6a7b8c9..."

Samples

Powered by VitePress OpenAPI