Skip to main content
Back to API List To fetch conversation details and summary between the bot and user, or the user and agent. Supports pagination via skip and limit parameters.
FieldValue
MethodPOST
Endpointhttps://{{host}}/api/public/bot/{{botId}}/conversationDetails
Content Typeapplication/json
Authorizationauth: {{JWT}} See How to generate the JWT Token.
API ScopeApp Builder: Chat History

Path Parameters

ParameterRequiredDescription
hostRequiredEnvironment URL, for example, https://platform.kore.ai.
botIdRequiredBot ID or Stream ID. Access it from the General Settings page of the bot.

Sample Request

curl --location --request POST 'https://platform.kore.ai/api/public/bot/st-86exxx8d-7021-5f2b-bf6c-8a1xxxxxb0/conversationDetails' \
--header 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"callId":"00001",
"isSummaryRequired":true
}'

Request Body Parameters

ParameterRequiredDescription
skip/offsetOptionalThe number of messages to skip.
limitOptionalThe number of messages to show per page.
sessionId/callIdRequiredUnique session ID or call ID to fetch conversation details. The callId refers to the external call identifier provided by third-party agent desktops.
conversationIdRequiredUnique identifier for the conversation. Use either sessionId or conversationId; if both are provided, sessionId takes precedence.
langOptionalThe language in which the conversation summary should be returned.
isSummaryRequiredOptionalWhether to include an auto-generated summary: true to include, false (default) to exclude.
If the session ID is available, the call ID is not mandatory and vice versa. If both are present, the session ID is used.

Sample Response

{
   "conversationInfo": {
       "userId": "u-c8c61885-85bb-xxxx-xxxx-6fd4a97c58f9",
       "callId": "9eb6c49e-f647-4c48-b31c-cc207e3a6080",
       "sessionStartTime": "2023-08-07T11:18:10.195Z",
       "agentHandOffTime": "2023-08-07T11:18:11.304Z",
       "userDetails": {
           "firstName": "",
           "lastName": "",
           "phoneNumber": null
       },
       "currentTask": "null",
       "sessionId": "64d0d2f2bxxxxxxxxa566d08"
   },
   "conversationFlow": [
       {
           "status": "completedTask",
           "messageStoreId": "xxx",
           "taskName": "ConnectToAgent"
       }
   ],
   "conversationHistory": [
       {
           "type": "outgoing",
           "status": "pending",
           "createdOn": "2023-08-07T11:18:10.337Z",
           "components": [
               {
                   "cT": "text",
                   "data": {
                       "text": "Agent transfer initiated"
                   }
               }
           ]
       }
   ],
   "summary": {
       "ConversationSummary": "agent will need to get an agent on the line to help customer with that.",
       "time": "2023-08-09T06:53:18.579Z"
   }
}