Sessions

List 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
get/api/v2/sessions

Response

Success response

Example response

{
  "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
    }
  ]
}

Changes