Skip to main content
GET
/
v1
/
sessions
/
{id}
/
transcript
get session transcript
curl --request GET \
  --url https://api.anam.ai/v1/sessions/{id}/transcript \
  --header 'Authorization: Bearer <token>'
{
  "sessionId": "<string>",
  "personaName": "<string>",
  "startTime": "2023-11-07T05:31:56Z",
  "endTime": "2023-11-07T05:31:56Z",
  "durationMs": 123,
  "totalMessages": 123,
  "transcriptsEnabled": true,
  "messages": [
    {
      "role": "user",
      "message": "<string>",
      "timestamp": "2023-11-07T05:31:56Z",
      "speakingDurationSeconds": 123,
      "wasInterrupted": true
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Session ID

Response

Successfully retrieved transcript

sessionId
string

The session ID

personaName
string

Name of the persona in the session

startTime
string<date-time>

Session start time

endTime
string<date-time> | null

Session end time

durationMs
integer | null

Session duration in milliseconds

totalMessages
integer

Total number of messages in the transcript

transcriptsEnabled
boolean

Whether transcripts were enabled for this session

messages
object[]