# Retrieve a practice session

`GET https://api.morevoice.ai/v1/practice_sessions/{id}`

A practice web call's result (POST /v1/web_calls with `practice` returns its id): the transcript (`rep` and `customer` lines) and, once `status` is `scored`, the score on your QA rubric with each item's reasoning, the strengths and the coaching. It exists once the browser has joined the call; poll after the call ends (`scoring` takes a few seconds). Test keys read test-mode practice sessions only.

Authenticate with a secret API key: `Authorization: Bearer $MOREVOICE_API_KEY`.

Operation ID: `web_calls_retrieve_practice_session`.

## Parameters

### Path parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | A practice session ID (`prs_…`). |

### Headers

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `MoreVoice-Version` | `string` | no | The API version to use for this request. Defaults to the version the API key is pinned to. |

## Responses

### 200 OK

OK Returns `PracticeSession`.

| Field | Type | Description |
| --- | --- | --- |
| `id` | `string` | A practice session ID (prefix `prs_`). |
| `object` | `"practice_session"` | — |
| `run_id` | `string` | Your `practice.run_id`. |
| `call_id` | `string` | The practice web call's id (it has no call record). |
| `status` | `"live" \| "scoring" \| "scored" \| "too_short" \| "failed" \| "abandoned"` | `live` during the call, `scoring` right after it, then `scored`; `too_short` (the rep said too little to score), `failed` (it could not be scored) or `abandoned` (the call never finished). |
| `scenario_title` | `string` | — |
| `language` | `"he" \| "en" \| "ar" \| "ru"` | — |
| `transcript` | `PracticeLine[]` | — |
| `scorecard` | `PracticeScorecard \| null` | Null until `scored`. |
| `scorecard.score` | `number \| null` | 0–100 on your QA rubric (null: every item was not applicable). |
| `scorecard.passed` | `boolean \| null` | — |
| `scorecard.pass_threshold` | `number` | — |
| `scorecard.rubric_name` | `string` | — |
| `scorecard.items` | `object[]` | — |
| `scorecard.strengths` | `string[]` | — |
| `scorecard.coaching` | `object[]` | — |
| `scorecard.summary` | `string` | — |
| `scorecard.critical_failed` | `string[]` | — |
| `scorecard.stand_in` | `boolean` | true when no model scored it (test mode): a fixed example card. |
| `duration_s` | `number \| null` | — |
| `end_reason` | `string \| null` | — |
| `metadata` | `Record<string, string>` | The web call's metadata, with `purpose: practice` and `practice_run_id`. |
| `started_at` | `string` | An ISO-8601 timestamp in UTC. |
| `ended_at` | `string \| null` | — |
| `scored_at` | `string \| null` | — |
| `livemode` | `boolean` | `true` in live mode, `false` in test mode. |

Example:

```json
{
  "call_id": "call_3slqGaD2htUzxdRsI",
  "duration_s": 184,
  "end_reason": "assistant-ended-call",
  "ended_at": "2026-11-08T09:17:26.000Z",
  "id": "prs_B1Hdhc4M5i6PPRni0rAWDd",
  "language": "he",
  "livemode": true,
  "metadata": {
    "practice_run_id": "practice_42",
    "purpose": "practice"
  },
  "object": "practice_session",
  "run_id": "practice_42",
  "scenario_title": "Angry customer, late delivery",
  "scorecard": {
    "coaching": [
      {
        "better": "I'll send you the courier's number now.",
        "tip": "Offer a concrete next step"
      }
    ],
    "critical_failed": [],
    "items": [],
    "pass_threshold": 70,
    "passed": true,
    "rubric_name": "Service",
    "score": 82,
    "stand_in": false,
    "strengths": [
      "Acknowledged the delay"
    ],
    "summary": "Calm, clear handling."
  },
  "scored_at": "2026-11-08T09:17:31.000Z",
  "started_at": "2026-11-08T09:14:22.000Z",
  "status": "scored",
  "transcript": [
    {
      "end_ms": 2600,
      "role": "rep",
      "start_ms": 900,
      "text": "שלום, מדברת נועה, במה אפשר לעזור?"
    },
    {
      "end_ms": 4800,
      "role": "customer",
      "start_ms": 3100,
      "text": "ההזמנה שלי מאחרת כבר שבוע."
    }
  ]
}
```

### 400 Bad Request

The request is invalid: a parameter is missing, malformed or unknown, or the version header is unknown. Returns `ErrorEnvelope`.

### 401 Unauthorized

No valid API key was sent. Returns `ErrorEnvelope`.

### 403 Forbidden

The key may not do this (a missing scope, a plan limit, or a compliance block). Returns `ErrorEnvelope`.

### 404 Not Found

No object with this ID (in the path or the body) exists in this organisation and mode. Returns `ErrorEnvelope`.

### 429 Too Many Requests

Too many requests, or no call capacity right now. Retry after the Retry-After delay. Returns `ErrorEnvelope`.

### 500 Internal Server Error

Something went wrong on MoreVoice's side. Retry with the same Idempotency-Key. Returns `ErrorEnvelope`.

## Code samples

**TypeScript**

```ts
import MoreVoice from "@morevoice/sdk";

const mv = new MoreVoice(); // MOREVOICE_API_KEY from the environment

const practiceSession = await mv.webCalls.retrievePracticeSession("prs_7Hk2Lm9Qp");
console.log(practiceSession);
```

**Python**

```python
from morevoice import MoreVoice

client = MoreVoice()  # MOREVOICE_API_KEY from the environment

practice_session = client.web_calls.retrieve_practice_session("prs_7Hk2Lm9Qp")
print(practice_session)
```

**cURL**

```sh
curl https://api.morevoice.ai/v1/practice_sessions/prs_7Hk2Lm9Qp \
  -H "Authorization: Bearer $MOREVOICE_API_KEY"
```
