Login User
POST/sessions
Authenticate a user with email (username optional) and password and return a bearer token. When the user has 2FA enabled, a 2FA-required response is returned instead and the login must be completed via the 2FA verification endpoint. Responds 401 for wrong credentials; rate-limited to 10 requests per minute.
Request
Responses
- 200
- 400
- 401
- 422
- 503
Successful Response
TURNSTILE_ENFORCE is on and turnstile_token is missing or invalid (data.code captcha_required / captcha_invalid).
The user was not found or the password was incorrect.
The user was not have correct request.
Captcha verification could not be completed (data.code captcha_unavailable).