Skip to main content
POST
Back to the Analytics APIs overview Use this endpoint to read the transcript of one saved session, with the parameters in the request body instead of the URL. It returns the same response as the corresponding GET endpoint. For the response fields and errors, see that article. Use the POST endpoint when the request parameters must be encrypted. When request encryption is on for the Platform Key, send the body as an encrypted JWE. For details, see List conversation messages using JWE payload. When response encryption is on, the endpoint returns encrypted responses, as for the other analytics endpoints.

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.

Request

Send the session ID in the path. The path takes one ID. A comma-separated list returns 400 SINGLE_SESSION_ONLY. Set Content-Type to application/json or application/jose+json. Any other type returns 415 UNSUPPORTED_MEDIA_TYPE. The body is optional. When you send one, it is a flat JSON object with these keys. An unknown key returns 400. For the paging rules, the summary behavior, and the summary fields, see Include a summary in the GET article. Example body for the first page with a summary:

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

Body

cursor
string
limit
integer
default:50
Required range: 1 <= x <= 200
includeSummary
boolean
default:false

Response

One page of the transcript.

success
boolean
required
data
object
required