> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://platform.bctrl.ai/llms.txt.
> For full documentation content, see https://platform.bctrl.ai/llms-full.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://platform.bctrl.ai/_mcp/server.

# Recording

> Replay a finished run as a recorded session.

Every [run](/sdk/runs) is recorded. After it finishes, mint a viewer URL to replay the full session - useful for debugging agent behaviour, audits, and support.

## Get a recording

```ts
const recording = await bctrl.runs.recording(runId);

console.log(recording.url);    // embed to replay
console.log(recording.status);       // recording availability
console.log(recording.durationMs);   // length of the session
console.log(recording.expiresAt);    // lease expiry
```

Like [live view](/sdk/live-view), the recording URL is a time-limited lease. Mint a fresh one when it expires.

## Next

* [Live View](/sdk/live-view) - watch in real time instead
* [Events & Activity](/sdk/events) - the structured timeline
* [Run Files](/sdk/run-files) - artifacts a run produced