This API retrieves the conversation sessions created. The API details are available in the Bot Builder and Bot Admin Console (BAC) app scopes.
To use this API, app needs the Bot Builder API scope of Bot sessions.
OR the Admin API Scope of Bot sessions under Bot Analytics.
POST https://{{host}}/api/public/bot/{{BotID}}/getSessions?containmentType={{containmentType}}
and https://{{host}}/api/public/getSessions?containmentType={{containmentType}}
for BAC.
Body Parameters
Parameter |
Description |
userId (optional) |
The ID of the user whose conversation history to access. Can be a user email id or enterprise assigned unique id. |
skip/offset (optional) |
The number of messages to be skipped. |
limit (optional) |
The number of messages to be shown on each page. |
dateFrom (optional) |
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. If not provided, calculated as 7 days behind dataTo. |
dateTo (optional) |
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. If not provided, calculated as 7 days from dateFrom. If dateFrom is also not provided then set to Today. |
tags (optional) |
Meta tags to filter the conversations. |
sessionType (optional)
(introduced in ver8.0) |
Type to filter the conversations – can be:
- non-interactive – sessions that have bot messages presented without any message from the user
- interactive – sessions that include one or more messages from the user
|
Note: The duration between dateTo and dateFrom should be less than 7 days, else an error will be thrown.
권한 부여
다음 구문을 포함한 헤더에 JWT를 포함한 API를 호출합니다. auth: {{JWT}}