Skip to main content

Documentation 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.

If you forget your password, you can reset it without contacting an administrator. The process takes two steps: request a one-time code to be sent to your email, then submit that code alongside your new password. Both steps are described below.
1

Request a password reset code

Send your email address to receive a 6-digit OTP. The API always returns a success message regardless of whether the email exists — this prevents attackers from enumerating registered addresses.Endpoint
POST /api/auth/forgot-password
Request body
correo
string
required
The email address associated with your account.
Response
message
string
Always returns "Si el correo existe, recibirás un código de recuperación." — whether or not the email is registered or the account is active.
Example
curl -X POST https://your-api.example.com/api/auth/forgot-password \
  -H "Content-Type: application/json" \
  -d '{
    "correo": "estudiante@universidad.edu"
  }'
2

Submit the code and your new password

Once you have the OTP from your email, send it together with your email and the new password you want to set.Endpoint
POST /api/auth/reset-password
Request body
correo
string
required
The email address you submitted in step 1.
codigo
string
required
The 6-digit OTP code delivered to your email.
newPassword
string
required
Your new password. Must pass the server-side validation rules.
Response
message
string
"Contraseña actualizada correctamente. Ya puedes iniciar sesión." on success.
Example
curl -X POST https://your-api.example.com/api/auth/reset-password \
  -H "Content-Type: application/json" \
  -d '{
    "correo": "estudiante@universidad.edu",
    "codigo": "382910",
    "newPassword": "MyNewSecurePassword2!"
  }'
OTP codes expire after a short time window. If you receive a 401 response with "Código incorrecto o expirado. Solicita uno nuevo.", go back to step 1 and request a fresh code. Each new request invalidates any previously issued unused codes.

Build docs developers (and LLMs) love