login
Authenticate an administrator with email and password. A successful login creates the browser session cookies, including the csrftoken value used with the X-CSRFToken header on later API requests.
When 2FA is enabled, either include the two_factor code in this request or submit the first factor here and complete the login with Two Factor.
Request Body
application/json
Login request using email/password and an optional two-factor code
Administrator email address used to log in
Administrator password used to log in
Optional two-factor authentication code for the login request
Response Body
curl -X POST "https://example.com/api/v1/login" \ -H "Content-Type: application/json" \ -d '{ "email": "test@mistsys.com", "password": "foryoureyesonly", "two_factor": "123456" }'{ "email": "test@mistsys.com", "two_factor_passed": false, "two_factor_required": true}verifyRegistration POST
Verify a new administrator registration using the token from the registration email. This public endpoint does not require authentication. A successful verification creates a login session and may also apply a pending invitation; the response indicates whether an invitation could not be applied automatically.
twoFactor POST
Complete a two-factor login by submitting the 2FA code after the initial email/password step has created a pending login session.