younifyd
Menu

List User Sessions

List Sessions for User

GET/api/v2/users/{user_id}/sessions

Use it in a workflow

  1. Add a step and choose the Zendesk connector.
  2. Pick the List User Sessions action (under Sessions).
  3. Fill in the fields below, then reference the result from later steps as {{listUserSessions.response.data}}.

Request

Path parameters

user_idinteger (int64)required

The id of the user

Response

Returns 200 with an object. Read it in later steps with {{listUserSessions.response.data.<field>}}.

sessionsarray<object>
authenticated_atstring

When the session was created

idinteger (int64)required

Automatically assigned when the session is created

last_seen_atstring

The last approximate time this session was seen. This does not update on every request.

urlstring

The API URL of this session

user_idinteger (int64)

The id of the user

json
{
  "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",
      "user_id": 12345
    }
  ]
}

Need more? See the Zendesk guide for connection setup and behaviour shared by every action.