v1

latestOpenAPI 3.1.02026-07-17753796.1 KB
Users

Create Token

post/api/users/{username}/tokens

Path parameters

usernamestring required

Request body

client_idstring required

OAuth client ID of the token.

scope'admin' | 'install' | 'update' | 'read' required

Permission scope of the token.

grant_type'one-time'

Use "one-time" to generate a passwordless login token that expires in 30 seconds.

Response

Data of the newly created token.

idstring required
tokenstring required

Only available if the token was freshly created.

usernamestring

Username of the token.

client_idstring

Client ID of the token.

scope'admin' | 'install' | 'update' | 'read' required

Permission scope of the token.

grant_type'one-time'

Grant type of the token

expiresinteger

Timestamp when the one-time token expires.

urlstring

Login URL for passwordless authentication tokens.