Logging in to AirGuide is a two-step process. In step 1, you submit your credentials toDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/luiss811/Backend-Airguide/llms.txt
Use this file to discover all available pages before exploring further.
POST /api/auth/login. If your email and password are correct and your account is active, the server sends a 6-digit OTP to your registered email. You then proceed to step 2 — verify the OTP to receive a JWT token.
Endpoint
Request body
Your registered email address.
Your account password.
Response
A200 OK response indicating that an OTP has been dispatched:
Always
true. Proceed to /api/auth/verify-2fa with the OTP from your email.The email address the OTP was sent to. Use this value when calling
/api/auth/verify-2fa."Código de verificación enviado a tu correo electrónico."Example
What to do next
Check your inbox for a 6-digit OTP code and proceed toPOST /api/auth/verify-2fa. Pass the correo value from this response along with the codigo from your email to complete login and receive your JWT token.
See Verify 2FA OTP and receive a JWT token for the next step.