ApiAuth
Get all active sessions
GET
bearerX-API-Version?stringAPI version for header-based versioning
Default
"1"Value in
"1""2"List of active sessions retrieved successfully
response?unknownapplication/jsoncurl -X GET 'http://localhost:3001/api/v1/auth/sessions'Example Response
{ "status": "success", "statusCode": 200, "message": "Sessions retrieved successfully", "data": [ { "id": "123e4567-e89b-12d3-a456-426614174000", "deviceName": "Chrome on macOS", "deviceType": "desktop", "ipAddress": "192.168.1.1", "lastActivityAt": "2026-01-31T10:00:00.000Z", "createdAt": "2026-01-31T09:00:00.000Z", "expiresAt": "2026-02-07T09:00:00.000Z", "isCurrent": true } ], "timestamp": "2026-01-31T10:00:00.000Z", "path": "/api/v1/auth/sessions"}