Session

Create a new session (login)

If no users are defined, this will create an initial user with the given credentials.

post/api/session

Request body

OR

Response

Successful login

usernamestring

Username of the user.

scope'admin' | 'install' | 'update' | 'read'
totp_enabledboolean

Whether two-factor authentication is enabled/required using TOTP. Not available if Passkey is used.

passkeyboolean

Whether this user authenticates using a Passkey.

Changes