Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Alejandrin08/Hackathon-SPEI/llms.txt

Use this file to discover all available pages before exploring further.

Endpoint

POST http://localhost:5000/api/auth/login
No authentication required. Returns a signed JWT token to use in all protected requests.

Request body

email
string
required
Registered email address.
password
string
required
Account password.

Response

200 OK

token
string
required
Signed JWT for authenticating subsequent requests.
expiresIn
integer
required
Token lifetime in seconds.

Error responses

StatusDescription
400 Bad RequestValidation error (missing or malformed fields).
401 UnauthorizedIncorrect email or password.
401
{
  "message": "Correo o contraseña incorrecta."
}

Using the token

Include the returned token as a Bearer token in the Authorization header of all protected requests:
Authorization: Bearer <token>

Example

curl -X POST http://localhost:5000/api/auth/login \
  -H "Content-Type: application/json" \
  -d '{
    "email": "maria@example.com",
    "password": "SecurePass123!"
  }'

Build docs developers (and LLMs) love