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
}
]
}Returns the conversation transcript for a session
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
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Session ID
Successfully retrieved transcript
The session ID
Name of the persona in the session
Session start time
Session end time
Session duration in milliseconds
Total number of messages in the transcript
Whether transcripts were enabled for this session
Show child attributes
Was this page helpful?