# Login user **POST /auth/login** Log in user by creating and registering auth tokens. Login is based on email and password. If no user matches given email It fallbacks to a desktop ID. It is useful for desktop tools that don't know user email. It is also possible to login with TOTP, Email OTP, FIDO and recovery code. ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Jwt authorization ## Parameters ## Body parameters Content-type: application/json - **email** (string(email)) User email address - **password** (string(password)) User password - **totp** (string) TOTP verification code for two-factor authentication - **email_otp** (string) Email OTP verification code for two-factor authentication - **fido_authentication_response** (object) FIDO authentication response for WebAuth - **recovery_code** (string) Recovery code for two-factor authentication ## Responses ### 200: Login successful ### 400: Login failed [Powered by Bump.sh](https://bump.sh)