List of Managers

Retrieve a list of Manager objects.

Parameter

Accessible via URL https://api.channel.io/open/v4/managers and HTTP GET

๐Ÿ“˜

This method accepts application/json

ParameterExampleRequiredDescriptionParameter type
sinceusernameOptionalUsername of the first manager to be retrievedQuery
limit25OptionalRestrict the maximum number of messages to be retrievedQuery

Example

GET https://api.channel.io/open/v4/managers?limit=10&since=username

Response

Returns a list of Manager objects.

{
  "next": "string",
  "managers": [
    {
      "id": "string",
      "channelId": "string",
      "accountId": "string",
      "username": "string",
      "name": "string",
      "description": "string",
      "email": "string",
      "mobileNumber": "string",
      "role": "owner",
      "removed": true,
      "createdAt": 1624414655822,
      "defaultGroupWatch": "all",
      "defaultDirectChatWatch": "all",
      "defaultUserChatWatch": "all",
      "operatorScore": 0,
      "touchScore": 0,
      "avatar": {
        "bucket": "string",
        "key": "string",
        "width": 0,
        "height": 0
      },
      "operatorEmailReminder": true,
      "operator": true,
      "operatorScheduling": true,
      "operatorTimeRanges": {
        "timeRanges": [
          {
            "dayOfWeeks": [
              "mon"
            ],
            "from": 0,
            "to": 0
          }
        ]
      },
      "avatarUrl": "string",
      "managerId": "string"
    }
  ],
  "onlines": [
    {
      "channelId": "string",
      "personType": "string",
      "personId": "string",
      "id": "string"
    }
  ]
}

Implementation Notes

The number of managers retrieved in this endpoint is restricted by the limit query parameter, and is capped to values in the closed interval [1, 500].

Pagination is supported through the since query parameter along with the next value contained in the root object of the JSON response. Successive queries to this endpoint using the previous next value as the since parameter will ultimately retrieve all managers.

The since parameter can be left empty to start the list.