Get Bots - Early Access

Resource

https://api.infobip.com/ccaas/1/bots

Parameters

Use this method to get a bots.

Property name Type Description
limit integer Size of the result page. If a limit count is given, no more than that many rows will be returned (but possibly less, if the query itself yields fewer rows). The default value is 10, the max value is 999.
page integer This parameter says to skip that many rows before beginning to return rows. If both page and limit appear, then page rows are skipped before starting to count the limit rows that are returned. The default value is 0.
orderBy string This parameter is used to order your results. If an order is not given, the default order id:asc will be applied. Possible ordering fields are properties. Ordering direction can be specified with modifiers asc for the ascending ordering or desc for the descending one.

Request Example

					GET /ccaas/1/bots HTTP/1.1
Host: api.infobip.com
Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
					
				

Response

					{
    "bots": [
        {
            "displayName": "Bot MOTO GP",
            "webhookUrl": "www.webhookurl.com/motogp",
            "destination": "447492263890",
            "enabled": true,
            "id": "6988D4642270FD8EF9EA833DCD972BB1"
        },
        {
            "displayName": "Bot WRC",
            "webhookUrl": "www.webhookurl.com/wrc",
            "destination": "447492263891",
            "enabled": true,
            "id": "42B798FEE773F8D16E91CD54B6F2B972"
        }
    ],
    "pagination": {
        "totalItems": 2,
        "page": 0,
        "limit": 10,
        "orderBy": "id:ASC"
    }
}
					
				
					{
    "statusCode": "ERROR",
    "message": "Page size must not be less than one!"
}