Authentication
Login
Authenticate a user and receive a JWT token
POST
Login
Description
Authenticates a user with email and password. Returns a JWT token that must be used in the Authorization header for protected endpoints. Automatically updates the user’slast_session field.
Authentication
This endpoint is public and does not require authentication.Rate Limiting
- Limit: 5 requests per 15 minutes per IP address
- Error Message: “Demasiados intentos de inicio de sesión. Por favor, intente de nuevo en 15 minutos.”
- Note: This strict rate limiting protects against brute force attacks
Request Body
User’s email address
User’s password
Response
Indicates if the request was successful
Human-readable response message
Response data containing authentication token and user information
Example Request
cURL
JavaScript
Python
Success Response (200)
Error Responses
400 - Missing Credentials
401 - Invalid Credentials
401 - Inactive User
429 - Too Many Requests (Rate Limit)
500 - Internal Server Error
Login
