---
title: "get session transcript"
method: GET
path: "/v1/sessions/{id}/transcript"
tags: ["Sessions"]
---

# get session transcript

`GET /v1/sessions/{id}/transcript`

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.

## Path parameters

- `id` string, uuid, required

## Response `200`

Successfully retrieved transcript

- object
  - `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, nullable — Session end time
  - `durationMs` integer, nullable — Session duration in milliseconds
  - `totalMessages` integer — Total number of messages in the transcript
  - `transcriptsEnabled` boolean — Whether transcripts were enabled for this session
  - `messages` object[]
    - `role` 'user' | 'persona'
    - `message` string
    - `timestamp` string, date-time, nullable
    - `speakingDurationSeconds` number, nullable
    - `wasInterrupted` boolean — Only present for persona messages

## Other responses

- `400` — Bad request - Invalid session ID
- `401` — Unauthorized - Invalid or missing API key
- `403` — Forbidden - API key lacks the required permission
- `404` — Not Found - Session not found, zero-data-retention, or no transcript available
- `410` — Gone - Session report was deleted
- `500` — Server error

---

[API](https://skmtc.net/anam/apis/anam-ai-api.md) · [All operations](https://skmtc.net/anam/apis/anam-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/anam/anam-ai-api/versions/67afd1c5db59/schema)
