| Method | GET / POST |
|---|---|
| Endpoint | https://{{host}}/api/public/bot/{{BotID}}/dashboard/{{dashboardName}}/widget/{{widgetName}}?startDate={{startDate}}&endDate={{endDate}}&limit={{limit}} |
| Content Type | application/json |
| Authorization | auth: {{JWT}} See How to generate the JWT Token. |
| API Scope | App Builder: Custom Reports; Admin Console: Custom Reports > Custom Reports |
A POST API call is supported to include additional filters for querying data. See Custom Dashboard Filters for more information.
Path Parameters
| Parameter | Required/Optional | Description |
|---|---|---|
host | Required | Environment URL, for example, https://platform.kore.ai |
BotID | Required | Bot ID or Stream ID. Accessible from the General Settings page of the bot. |
Sample Request for GET Call
Sample Request for POST Call
Body Parameters
| Parameter | Required/Optional | Description |
|---|---|---|
dashboardName | Required | Name of the Custom Dashboard containing the required widget. |
widgetName | Required | Name of the widget whose data to retrieve. |
limit | Optional | Number of records to fetch. Maximum is 50. |
startDate | Required | Start date for the data range. Use ISO date format (for example, 2020-03-30). |
endDate | Required | End date for the data range. Use ISO date format (for example, 2020-03-30). |
customFilters (filterSource, fieldName, values) | Required | Additional filters for custom dashboards. See Create Custom Dashboard Filters. |