API Reference/api/auth/api/auth/login

/api/auth/login

POST
Login

Body (JSON)

Field NameTypeDescription
usernamestringThe username to login with
passwordstringThe password to login with
codestring?TOTP code, if needed

200
Ok (JSON)

Field NameTypeDescription
successbooleantrue if the login was successful, false otherwise

403
Unauthorized (JSON)

  • Wrong password - The password provided is incorrect.
  • TOTP required - The user has 2FA enabled and a TOTP code is required. A modal will be shown to the user to enter the code.

400
Bad Request (JSON)

  • Invalid code - The TOTP code provided is invalid. Extra: .totp

404
Not Found (JSON)

  • user not found - The username provided doesn't exist.
Last updated: 8/4/2023
Edit this page on GitHub