POST /api/auth/login
Authenticates a user with email and password and returns access tokens along with user information.Authentication
No authentication required.Request Body
The user’s email address
The user’s password
Response Fields
JWT access token for API authentication
JWT refresh token for obtaining new access tokens
Unix timestamp when the access token expires
Number of seconds until the access token expires (default: 3600)
Example Request
Example Response
Error Responses
400 Bad Request
Missing required fields:404 Not Found
User not found in database:500 Internal Server Error
The access token should be included in the
Authorization header as Bearer <token> for subsequent API requests.