To retrieve the audit logs from Bot Admin Console
Note: This feature was introduced in ver7.2 of the platform.
Method | GET |
Endpoint | https://{{host}}/api/public/auditlogs? |
Content Type | application/json |
Authorization | auth: {{JWT}}
|
API Scope |
|
Path Parameters
Parameter | Description |
---|---|
host | Environment URL, for example, https://bots.kore.ai |
size | Number of records to be fetched upto a maximum of 100 |
offset | Specify the page number from which to start fetching the logs. If unspecified, it starts from 0, which is the first page of the list of logs |
fromDate | Takes the date format yyyy-mm-dd (or) yyyy-mm-ddThh:mm:ss.msZ eg:2019-04-01 (or) 2019-04-01T13:25:58.515Z |
toDate | Takes the date format yyyy-mm-dd (or) yyyy-mm-ddThh:mm:ss.msZ eg:2019-04-01 (or) 2019-04-01 T13:26:05.598Z |
fetchAfter (optional) |
Audit Log Id from where you want to fetch the logs. This is an unique incremental ID for each record created under audit logs and you can obtain it from looking at the previous audit log file. |
Sample Request
curl --location --request GET \ 'https://{{host}}/api/public/auditlogs?size=50&offset=0&fromDate=2021-07-07T11:11:18.464Z&toDate=2021-06-30T11:11:18.469Z' \ --header 'auth: YOUR_JWT_ACCESS_TOKEN' \ --header 'Content-Type: application/json' \