Endpoint
Authenticate a user with their email and password. Returns access and refresh tokens for subsequent API requests. No authentication required.
Request body
Response
Indicates whether the request was successful.
ISO 8601 timestamp of when the response was generated.
The login response data.JWT access token for authenticating API requests.
JWT refresh token for obtaining new access tokens.
Example request
curl -X POST http://localhost:8080/api/auth/login \
-H "Content-Type: application/json" \
-d '{
"email": "[email protected]",
"password": "SecurePass123"
}'
Example response
{
"success": true,
"timestamp": "2026-03-03T10:35:00Z",
"data": {
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
}