List Sessions

GET {{baseUrl}}/api/v2/sessions

If authenticated as an admin, returns all the account's sessions. If authenticated as an agent or end user, returns only the sessions of the user making the request.

Pagination

  • Cursor pagination (recommended)
  • Offset pagination

See Pagination.

Allowed For

  • Admins, Agents, End users

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"sessions":[{"authenticated_at":"2014-11-18T17:24:29Z","id":3432,"last_seen_at":"2014-11-18T17:30:52Z","url":"https://company.zendesk.com/api/v2/users/12345/sessions/3432.json","user_id":12345}]}