twoFactor
Complete a two-factor login by submitting the 2FA code after the initial email/password step has created a pending login session.
Request Body
application/json
Request body for submitting a 2FA login code
One-time 2FA login code generated by the user's authenticator app
Response Body
curl -X POST "https://example.com/api/v1/login/two_factor" \ -H "Content-Type: application/json" \ -d '{ "two_factor": "123456" }'login POST
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](/api/mist/admins/admins-login/twoFactor).
getOauth2AuthorizationUrlForLogin GET
Return the provider authorization URL used to start an OAuth2 login or account-linking flow. When `forward` is provided, the provider redirects back to that callback URL after authorization.