Skip to main content
Back to API List A lightweight endpoint that returns chat transcripts without additional metadata or payload overhead. Supports high-volume retrieval and minimizes response size to reduce processing time and avoid rate limit issues.
FieldValue
MethodGET and POST
EndpointGET: https://{{host}}/api/public/bot/{{botId}}/messages-lite?userId={{userId}}&limit=5&skip=0&offset=0 POST: https://{{host}}/api/public/bot/{{botId}}/messages-lite
Content Typeapplication/json
Authorizationauth: {{JWT}} See How to generate the JWT Token.
API ScopeApp Builder: Chat History; Admin Console: Bot Analytics > Chat History

Path Parameters

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

Sample Request

GET Method:
curl --location 'https://{{host}}/api/public/bot/{{botId}}/messages-lite?userId={{userId}}&limit=5&skip=0&offset=0' \
--header 'accept: application/json' \
--header 'auth: {{YOUR_JWT_ACCESS_TOKEN}}'
POST method:
curl --location 'https://{{host}}/api/public/bot/{{botId}}/messages-lite' \
--header 'accept: application/json' \
--header 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
--header 'Content-Type: application/json' \
--data '{"userId": "u-xxxx-xxxxx-xxxx", "sessionId": "5eadxxxxxxxxxxxxx", "dateFrom": "2019-04-01", "dateTo": "2019-04-30", "channelType": "rtm", "type": ["incoming", "outgoing"], "limit": 100, "skip": 0, "isDeveloper": false}'

Request Query Parameters (GET)

ParameterRequiredTypeDescription
userIdRequiredStringUnique identifier of the user.
limitOptionalIntegerMaximum number of messages to return. Default is 5.
skipOptionalIntegerNumber of records to skip before retrieving results.
offsetOptionalIntegerPagination offset value.

Request Body Parameters (POST)

ParameterRequiredTypeDescription
userIdRequiredStringUnique identifier of the user.
sessionIdOptionalStringUnique session identifier.
dateFromOptionalStringStart date for filtering messages. Format: YYYY-MM-DD.
dateToOptionalStringEnd date for filtering messages. Format: YYYY-MM-DD.
channelTypeOptionalStringSource channel, for example rtm.
typeOptionalArrayMessage direction: incoming or outgoing.
limitOptionalIntegerMaximum number of messages to return.
skipOptionalIntegerNumber of records to skip.
isDeveloperOptionalBooleanIndicates if the query runs in developer mode.

Sample Response

GET method:
{
  "total": 120,
  "moreAvailable": true,
  "messages": [
    {
      "_id": "ms-221b1c28-b924-56be-aac7-2d28d5b5xxxx",
      "botId": "st-cb7818ab-5d92-5b27-95c4-503c1d94xxxx",
      "type": "outgoing",
      "status": "pending",
      "createdOn": "2025-11-11T05:05:46.526Z",
      "sessionId": "6912c08e55667c476791xxxx",
      "lang": "en",
      "chnl": "rtm",
      "components": [
        {
          "cT": "text",
          "data": {
            "text": "I am closing our current conversation as I have not received any input from you."
          }
        }
      ]
    }
  ]
}

Response Body Parameters

ParameterTypeDescription
totalIntegerTotal number of messages matching the query.
moreAvailableBooleanIndicates whether more messages are available beyond the current response.
messagesArrayArray of message objects.
_idStringUnique identifier of the message.
botIdStringUnique identifier of the bot.
typeStringDirection: incoming or outgoing.
statusStringMessage status, such as pending or received.
createdOnStringISO 8601 timestamp when the message was created.
sessionIdStringUnique session ID.
langStringLanguage of the message.
chnlStringChannel through which the message was sent.
componentsArrayArray of message components.
cTStringType of message component, for example text.
dataObjectObject containing message content.