Authentication
Login
Authenticate and receive a JWT access token.
POST
Request body
The email address associated with the account.
The account password.
Response
A human-readable confirmation message. Example:
"Login successful!"HTTP status code.
200 on success.Include the
access_token in the Authorization header of all subsequent requests that require authentication: Authorization: Bearer <access_token>.Error responses
| Status | Error code | Description |
|---|---|---|
400 | INVALID_JSON | The request body is not valid JSON. |
400 | MISSING_FIELDS | One or more required fields (email, password) are absent. |
401 | INVALID_CREDENTIALS | The password does not match the stored credential. |
404 | USER_NOT_FOUND | No account exists for the given email address. |
500 | JWT_ERROR | The server failed to generate the JWT token. |
500 | INTERNAL_SERVER_ERROR | An unexpected server-side error occurred. |