Skip to content

Get Session History

GET/web/v1/users/self/security/sessions/history JWT

Retrieves paginated login history for the authenticated user. Supports time-range filtering. This endpoint replaces the old GET /profile/login-history.

Required Headers

HeaderExample ValueDescription
Content-Typeapplication/jsonRequest content type
Acceptapplication/jsonExpected response type
X-Client-HashClient device fingerprint
Accept-Languageen, zh, zh-Hant, ja, viResponse language (default: en)
AuthorizationBearerJWT access token

Request Parameters

NameTypeRequiredInDescription
pageIntegerOptionalqueryPage number (default: 0)
sizeIntegerOptionalqueryPage size (default: 20)
startTimeStringOptionalqueryFilter start time (ISO 8601)
endTimeStringOptionalqueryFilter end time (ISO 8601)

Success Response

Success 200
{
  "version": "1.3.0",
  "timestamp": 1709337600000,
  "success": true,
  "code": "2000",
  "message": "SUCCESS",
  "data": {
    "content": [
      {
        "loginTime": "2026-03-23T12:00:00Z",
        "ipAddress": "1.2.3.4",
        "userAgent": "Mozilla/5.0...",
        "location": "San Francisco, US",
        "success": true
      }
    ],
    "totalElements": 42,
    "totalPages": 3,
    "number": 0,
    "size": 20
  }
}

Error Responses

Unauthorized 401
{
  "success": false,
  "code": "4010",
  "message": "Invalid or expired token"
}

Notes

  • Replaces the old GET /profile/login-history endpoint — now grouped with session management.
  • Supports pagination and time-range filtering.
  • Results are ordered by login time descending (most recent first).

SlaunchX Internal Documentation