This is a public endpoint. No authentication is required to call it.
Request
POST/api/auth/login
Body parameters
The user’s email address.
The user’s password.
Response
JWT Bearer token. Include this in the
Authorization header of subsequent requests.Token scheme. Always
"bearer".The authenticated user’s profile.
Using the token
After a successful login, include theaccess_token in the Authorization header of every request that requires authentication:
ACCESS_TOKEN_EXPIRE_MINUTES environment variable on the server.
Error responses
| Status | Description |
|---|---|
401 Unauthorized | The email or password is incorrect. Response body: {"detail": "Credenciales inválidas"}. |
403 Forbidden | The account exists but has been deactivated. Response body: {"detail": "Usuario desactivado"}. |
422 Unprocessable Entity | The request body failed validation (e.g. missing field or invalid email format). |