Skip to content

List all the user sessions

Request

Lists of all sessions for the current user and site.

Security
CookieBlaizeSession or JwtQuery or JwtHeaderXBlaizeJwt or JwtHeaderXZephrJwt or JwtBearer or JwtCookie
cURL
curl -i -X GET \
  https://demo-site/zephr/public/sessions/v1/sessions \
  -b blaize_session=YOUR_API_KEY_HERE

Responses

OK

Headers
any
Bodyapplication/json
Array [
idstring

The ID of the session

Example:"aba22-a5mfh-"
startDatestring, (date-time)

The creation date-time of the session

Example:"2011-11-11T11:11:11.000"
deviceTypestring

The type of device this session was created on

Example:"pc"
deviceNamestring

The name of the device this session was created on

Example:"Google Nexus 5"
ipstring

The IP address this session was created from

Example:"10.10.10.1"
browserstring

The name of the browser that this session was created from

Example:"Chrome"
osstring

The operating system of the device that this session was created from

Example:"Android"
citystring

The name of the city that this session was created from

Example:"Huston"
geoStatestring

The name of the state that this session was created from

Example:"Texas"
countrystring

The name of the country that this session was created from

Example:"USA"
isRequestingSessionboolean

True if this session is the session that made the request to this endpoint, otherwise false

Example:true
]
Response
[ { "id": "aba22-a5mfh-", "startDate": "2011-11-11T11:11:11.000", "deviceType": "pc", "deviceName": "Google Nexus 5", "browser": "Chrome", "os": "Android", "city": "Huston", "geoState": "Texas", "country": "USA", "isRequestingSession": true } ]