> ## Documentation Index
> Fetch the complete documentation index at: https://solidroad.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get an attempt transcript

> GET /v2/attempts/{id}/transcript returns what the learner and the AI persona said in a role-play.

```
GET https://api.solidroad.com/v2/attempts/{id}/transcript
```

Scope: `attempts:read`.

Lists never include transcripts. Read one attempt's transcript here. The endpoint finds the same attempts as [Get an attempt](https://solidroad.mintlify.site/api-reference/v2/endpoint/attempts/get.md).

## Path parameters

| Parameter | Type | Meaning |
| - | - | - |
| `id` | string | The attempt ID: `att_` and a UUID. |

This endpoint takes no query parameters.

## Request

```bash theme={null}
curl https://api.solidroad.com/v2/attempts/att_00000000-0000-4000-8000-000000000002/transcript \
  -H "Authorization: Bearer $SOLIDROAD_API_KEY"
```

## Response

```json theme={null}
{
  "object": "attempt_transcript",
  "attemptId": "att_00000000-0000-4000-8000-000000000002",
  "turns": [
    {
      "speaker": "persona",
      "kind": "message",
      "speakerName": "Dana",
      "text": "Hi, I was charged twice for my last order.",
      "startSeconds": 0,
      "endSeconds": 3.2
    },
    {
      "speaker": "learner",
      "kind": "message",
      "speakerName": "Sam",
      "text": "I'm sorry about that. Let me look at your account.",
      "startSeconds": 4.1,
      "endSeconds": 7.8
    }
  ]
}
```

## Transcript object

| Field | Type | When present | Meaning |
| - | - | - | - |
| `object` | string | Always | Always `attempt_transcript`. |
| `attemptId` | string | Always | The [attempt](https://solidroad.mintlify.site/api-reference/v2/endpoint/attempts/get.md) that the transcript belongs to, `att_…`. |
| `turns` | list | Always | The turns in the order they happened, as [turn objects](#turn-object). Empty when nothing has been said yet. |

The transcript has no ID or `updatedAt` of its own. While the attempt is running, you get the transcript as saved so far.

### Turn object

| Field | Type | When present | Meaning |
| - | - | - | - |
| `speaker` | string | Always | `learner` for the person training, `persona` for the AI they spoke to, or `system` for a marker that Solidroad added, such as a pause. |
| `kind` | string | Always | `message` for something said or sent. `note` for something the learner wrote down during a chat or email attempt. |
| `speakerName` | string | When known | The name shown for the speaker. |
| `text` | string | Always | What was said, sent or written. |
| `startSeconds` | number | When known | When the turn started, in seconds from the start of the attempt. For a chat or email message, when it was sent. |
| `endSeconds` | number | When known | When the turn ended, in seconds from the start of the attempt. Left out when the learner paused and resumed the attempt, or a call dropped and was started again. Then only `startSeconds` is given. |

Handle values that you do not know: we can add values in version 2.

### Keeping transcripts

After a call ends, Solidroad can replace the transcript with a more complete copy. This happens before the attempt is scored, and it does not move the attempt's `updatedAt`. So read the transcript once the attempt has a `scoredAt`. A correction to the score does not change the transcript, so you do not need to read it again.

An attempt that is never scored, such as one the learner abandoned, has no `scoredAt`. Read its transcript after the attempt has a final status. Read [Syncing](https://solidroad.mintlify.site/api-reference/v2/syncing.md#attempts).

## Errors

| Status | `code` | Cause |
| - | - | - |
| 401 | `unauthorized` | The API key is missing or not valid. |
| 403 | `insufficient_scope` | The key does not have `attempts:read`. |
| 404 | `not_found` | No attempt with this ID is in your workspace, the list leaves it out, or the attempt is a system simulation, which has no transcript. |
| 429 | `rate_limited` | You sent too many requests. |

Read [Errors](https://solidroad.mintlify.site/api-reference/v2/errors.md) for every code.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.