ZapAPI Docs
Get StartedConceptsAI GatewayGuidesPayment GatewaySDKAPI ReferenceResources
ApiAuth

Get all active sessions

GET
/api/v1/auth/sessions

Authorization

bearer

Header Parameters

X-API-Version?string

API version for header-based versioning

Default"1"
Value in"1""2"

Response Body

List of active sessions retrieved successfully

response?unknownapplication/json
Example Request
curl -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"}