Sessions

get session transcript

Changed on

Returns the conversation transcript for a session. Transcripts are never returned for zero-data-retention sessions, including to Anam-internal admin API keys. Admin keys may fetch transcripts for non-ZDR sessions of any organization.

get/v1/sessions/{id}/transcript

Request

  • Base URL
    https://api.anam.ai
  • URL
    https://api.anam.ai/v1/sessions/{id}/transcript
  • Auth
    HTTP bearer

Path parameters

idstring uuid required

Session ID

Response

Successfully retrieved transcript

sessionIdstring

The session ID

personaNamestring

Name of the persona in the session

startTimestring date-time

Session start time

endTimestring date-time nullable

Session end time

durationMsinteger nullable

Session duration in milliseconds

totalMessagesinteger

Total number of messages in the transcript

transcriptsEnabledboolean

Whether transcripts were enabled for this session. When false (sessionOptions.dataRetention.transcripts or sessionReplay.enableSessionReplay set to false), each message reads TRANSCRIPTS_DISABLED.

Changes