Skip to content

Retrieve a session

Request

Looks up a session.

Security
ZephrHmacHttp
Path
idstringrequired

Unique Session identifier

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

Responses

OK

Headers
any
Bodyapplication/json
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": [ { … } ] }