Get Active Sessions
GET
/web/v1/users/self/sessionsJWTRetrieves all active sessions for the authenticated user. The current session is marked in the response.
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
No request parameters required.
Success Response
Success200
{
"version": "1.3.0",
"timestamp": 1709337600000,
"success": true,
"code": "2000",
"message": "SUCCESS",
"data": [
{
"sessionId": "sess_abc123",
"ipAddress": "192.168.1.1",
"userAgent": "Mozilla/5.0",
"createdAt": 1709337600000,
"current": true
}
]
}Error Responses
Unauthorized401
{
"success": false,
"code": "4010",
"message": "Invalid or expired token"
}Notes
- The
currentfield in each session object indicates whether it is the session making the request. - Includes device and IP information for each session.