List of Bots

Retrieve a list of Bots

Parameter

Accessible via URL https://api.channel.io/open/v3/bots and HTTP GET

Parameter

Example

Required

Description

Parameter Type

since

1234

Optional

ID of the last bot to be retrieved

Query

limit

25

Optional

Maximum number of bots to be retrieved

Query

Example

GET http://api.channel.io/open/v3/bots?since=1234&limit=25

Response

Returns a list of Bots.

{
  "next": 1516616510425,
  "bots": [
    {
      "id": "String",
      "channelId": "String",
      "name": "String",
      "createdAt": 1527153746552,
      "avatarUrl": "String",
      "color": "String"
    }
  ]
}

Implementation note

The number of bots 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 bots. If the since parameter is left empty, the list retrieved will start with the bot of highest ID.