Get Login History
GET
/web/v1/users/self/login-historyJWTRetrieves the authenticated user's login history with support for pagination and time-range filtering. Results are sorted by login time in descending order.
Authentication
Auth Chain: WEB Chain — requires
Authorization: Bearer <jwt>These headers are injected by the system (frontend does nothing):X-PORTAL-ACCESS-CODE(Nginx),X-Request-Id(Gateway)
Request Parameters
| Name | Type | Required | In | Description |
|---|---|---|---|---|
page | Integer | No | query | Page number (0-based, default: 0) |
size | Integer | No | query | Page size (default: 20, max: 100) |
startTime | String (ISO 8601) | No | query | Start time filter (ISO 8601 datetime) |
endTime | String (ISO 8601) | No | query | End time filter (ISO 8601 datetime) |
Success Response
Success200
{
"version": "1.3.0",
"timestamp": 1709337600000,
"success": true,
"code": "2000",
"message": "SUCCESS",
"data": {
"content": [],
"totalElements": 0,
"totalPages": 0,
"number": 0,
"size": 20
}
}Error Responses
Unauthorized401
{
"success": false,
"code": "4010",
"message": "Invalid or expired token"
}Notes
- Supports pagination via
page(0-based) andsize(default 20, max 100) query parameters. - Supports optional time-range filtering via
startTimeandendTime(ISO 8601 format). - Results are sorted by login time in descending order.