POST /api/login
Authenticates a user with their email and password. Upon successful login, returns an authentication token that can be used for subsequent API requests.This endpoint does not require authentication. The returned token should be stored securely and included in the Authorization header for protected endpoints.
Request body
Email address of the user account.Validation rules:
- Must be a valid email format
Password for the user account.
Response
Authentication token for the user. Use this token in the Authorization header as
Bearer {token} for authenticated requests.The type of token issued. Always returns “Bearer”.
The authenticated user object.
Unique identifier for the user.
Full name of the user.
Email address of the user.
Timestamp when the user account was created (ISO 8601 format).
Timestamp when the user account was last updated (ISO 8601 format).
Error responses
Example request
Example response
200 OK
422 Unprocessable Entity