Get a session transcript
curl --request GET \
--url https://agents.kore.ai/api/public/analytics/projects/{projectId}/sessions/{sessionId}/transcript \
--header 'x-api-key: <api-key>'{
"success": true,
"data": {
"sessionId": "c6c7dfd6-3988-468b-89b2-86907d5acbba",
"turns": [
{
"messageId": "msg_01",
"role": "assistant",
"timestamp": "2026-11-26T10:00:00.000Z",
"content": "Welcome to Venus Bank! May I have your customer ID?"
},
{
"messageId": "msg_02",
"role": "user",
"timestamp": "2026-11-26T10:00:05.000Z",
"content": "cust-001"
}
],
"nextCursor": null,
"hasMore": false,
"ordering": {
"mode": "durable",
"version": 2
},
"summary": {
"text": "The customer asked about their credit cards. ...",
"messageCount": 13,
"summarizedMessageCount": 13,
"truncated": false,
"requestId": "sum_7f3c2a9e4b1d4c0a"
}
}
}Get session transcript
GET
/
api
/
public
/
analytics
/
projects
/
{projectId}
/
sessions
/
{sessionId}
/
transcript
Get a session transcript
curl --request GET \
--url https://agents.kore.ai/api/public/analytics/projects/{projectId}/sessions/{sessionId}/transcript \
--header 'x-api-key: <api-key>'{
"success": true,
"data": {
"sessionId": "c6c7dfd6-3988-468b-89b2-86907d5acbba",
"turns": [
{
"messageId": "msg_01",
"role": "assistant",
"timestamp": "2026-11-26T10:00:00.000Z",
"content": "Welcome to Venus Bank! May I have your customer ID?"
},
{
"messageId": "msg_02",
"role": "user",
"timestamp": "2026-11-26T10:00:05.000Z",
"content": "cust-001"
}
],
"nextCursor": null,
"hasMore": false,
"ordering": {
"mode": "durable",
"version": 2
},
"summary": {
"text": "The customer asked about their credit cards. ...",
"messageCount": 13,
"summarizedMessageCount": 13,
"truncated": false,
"requestId": "sum_7f3c2a9e4b1d4c0a"
}
}
}includeSummary to true to add a summary of the session to the first page. To summarize a session or a transcript that you send, use Generate conversation summary.
Prerequisites
- A Platform Key bound to the project, sent in the
x-api-keyheader, with thesession:readpermission. - The ID of a session in the project.
- For
includeSummary, a model bound to theconversation_summaryfeature in the project. Without it, the response is still200, andsummary.errorhas the codeSUMMARY_MODEL_NOT_CONFIGURED.
Request
Send the session ID in the path. The path takes one ID. A comma-separated list returns400 SINGLE_SESSION_ONLY.
| Parameter | Description |
|---|---|
cursor | The nextCursor value from the previous page. Omit it for the first page. |
limit | The number of messages per page, from 1 to 200. The default is 50. The API caps values above 200 at 200. |
includeSummary | true adds data.summary to the first page. The default is false. Any other value returns 400 INVALID_QUERY_PARAMETER. |
nextCursor from the response as cursor. Check hasMore to know whether more pages exist. A cursor error returns 400. When the error has resetRequired set to true, restart from the first page.
To send the parameters in a request body instead of the URL, use Get session transcript using JWE payload.
Include a summary
WithincludeSummary set to true, the first page includes data.summary. The first page is the request without a cursor.
- The summary covers the whole saved session, not only the returned page.
- On later pages, the API accepts the flag and ignores it.
- With the flag off, which is the default, the API makes no model call and the response has no summary.
- The summary is the same one that Generate conversation summary returns for the session. It uses the same prompt, model, PII handling, limits, 30-second deadline, and LLM call record.
- A failed summary doesn’t fail the request. The response is still
200, withsummary.textset tonullandsummary.errorset.
Response
| Field | Description |
|---|---|
success | Always true on a successful response. |
data.sessionId | The ID of the session. |
data.turns | The messages on this page, in conversation order. |
data.nextCursor | Pass this value as cursor to read the next page. null on the last page. |
data.hasMore | true when more pages exist. |
data.ordering | The ordering of the messages, with mode and version. |
data.summary | Only when includeSummary is true and the request has no cursor. |
Turn fields
Each item indata.turns has these fields:
| Field | Description |
|---|---|
messageId | The ID of the message. |
role | The sender of the message, such as user or assistant. |
timestamp | The time of the message. |
content | The content of the message, after the project’s PII read policy. |
Summary fields
Thedata.summary object has these fields:
| Field | Description |
|---|---|
text | The summary, after the project’s PII read policy. null when generation failed. |
messageCount | The number of user and assistant messages in the session. |
summarizedMessageCount | The number of messages sent to the model. 0 when no model call ran. |
truncated | true when the oldest messages were left out to fit the input budget. |
requestId | The ID that finds the model call in the LLM ledger. Use it with List LLM calls. null when no model call ran. |
error | Only on failure. The code is NO_SUMMARIZABLE_MESSAGES, SUMMARY_MODEL_NOT_CONFIGURED, SUMMARY_MODEL_FAILED, or SUMMARY_TIMEOUT. The message explains it. |
Errors
An error response hassuccess set to false and an error object with a code and a message.
| Status | Code | Cause |
|---|---|---|
400 | SINGLE_SESSION_ONLY | The sessionId path value is a comma-separated list. |
400 | INVALID_QUERY_PARAMETER | A query parameter is invalid, such as an includeSummary value other than true or false. |
400 | Cursor errors | The cursor is invalid. When resetRequired is true, restart from the first page. |
401 | AUTHENTICATION_REQUIRED | The x-api-key header is missing or invalid. |
403 | FORBIDDEN | The key lacks session:read or isn’t bound to the project. |
404 | NOT_FOUND | The session doesn’t exist. The API also returns this error for a session in another project. |
429 | RATE_LIMITED | The tenant request rate limit is exceeded. |
500 | TRANSCRIPT_FAILED | The API couldn’t read the transcript. |
Related articles:
- Generate conversation summary: Summarize a saved session or a transcript that you send.
- List conversation messages: List the messages of many sessions with filters.
Path Parameters
Query Parameters
Was this page helpful?