To get admin console audit logs.
To use this API, app needs the Admin API Scope.
GET https://{{host}}/api/public/auditlogs?size=50&offset=0&fromDate={{timestamp}}&toDate={{timestamp}}&fetchAfter={{AuditLogId}}
NOTE: This feature was introduced in ver7.2 of the platform.
Query 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. |
認証
以下の構文を使用して、JWTをヘッダーに含むAPIを呼び出します。 auth: {{JWT}}
応答のコンテンツタイプ
application/json
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'