Skip to content

List user sessions

Request

Retrieves a list of the user's sessions.

Security
ZephrHmacHttp
Path
user_idstringrequired

Unique User identifier

cURL
curl -i -X GET \
  'https://demo.api.zephr.com/v3/users/{user_id}/sessions' \
  -H 'Authorization: ZEPHR-HMAC-* <YOUR_TOKEN_HERE>'

Responses

OK

Headers
any
Bodyapplication/json
One of:
tenantIdstring
Example:"company"
subTenantIdstring
Example:"company|demo"
authenticatedboolean
Example:true
vinteger

version

Example:0
session_variablesobject(session_variables)
user_idstring
Example:"UU0123456789ABCD"
sessionsArray of objects(sessions)
access_modelobject(access_model)
last_updatedinteger

A timestamp indicating the last update of the session, measured in milliseconds since the epoch.

Example:1707230240685
test_groupsobject
second_party_dataobject
Response
{ "session_variables": {}, "user_id": "UU0123456789ABCD", "sessions": [ { … } ], "access_model": { "meters": [], "credits": [], "delivered_entitlements": [] } }