Skip to main content
GET
Get a session transcript
Back to the Analytics APIs overview Use this endpoint to read the transcript of one saved session. The response contains the customer-visible messages in conversation order, one page at a time. Content that the PII policy scrubbed stays scrubbed. The API writes an audit log entry for every call. Set 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-key header, with the session:read permission.
  • The ID of a session in the project.
  • For includeSummary, a model bound to the conversation_summary feature in the project. Without it, the response is still 200, and summary.error has the code SUMMARY_MODEL_NOT_CONFIGURED.

Request

Send the session ID in the path. The path takes one ID. A comma-separated list returns 400 SINGLE_SESSION_ONLY. To get the next page, pass 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

With includeSummary 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, with summary.text set to null and summary.error set.

Response

Turn fields

Each item in data.turns has these fields:

Summary fields

The data.summary object has these fields:

Errors

An error response has success set to false and an error object with a code and a message.
Related articles:

Authorizations

x-api-key
string
header
required

Path Parameters

projectId
string
required
Minimum string length: 1
sessionId
string
required

One session id. A comma-separated list returns 400 SINGLE_SESSION_ONLY.

Minimum string length: 1

Query Parameters

cursor
string

Opaque cursor from nextCursor of the previous page. Omit for the first page.

limit
integer
default:50

Messages per page. Values above 200 are capped at 200.

Required range: 1 <= x <= 200
includeSummary
enum<string>
default:false

true adds data.summary on the first page. Only true or false is accepted; any other value returns 400 INVALID_QUERY_PARAMETER.

Available options:
true,
false

Response

One page of the transcript.

success
boolean
required
data
object
required