# Export a run

Save a [run](/docs/concepts/runs.md) as a JSON file: its status, input, output and events.

## Before you start

You need a run. Find it with [Find a run that failed](/docs/observability/runs.md).

## Export a run

**Studio**

1. In your project, open **Orchestration** > **Runs**.
2. Click **Open** on the run.
3. Open the run's **Actions** menu.
4. Click **Export JSON**. You should now see a file named like `run-0b8e1c52-6f3a-4d2e-9b1a-7c4e2f8d1a90-20261112-081530.json` (the run's ID, then the UTC date and time), the run as the API returns it, in your downloads.

**Copy JSON** in the same menu copies it instead.

**REST**

1. Set `RUN_ID` to the run's ID ([Find your IDs](/docs/authentication/api-keys.md#find-your-ids)): `export RUN_ID=<id>`.
2. Save the run with your [API key](/docs/authentication/api-keys.md):

```bash
curl https://api.veryfront.com/runs/$RUN_ID \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -o run-$RUN_ID.json
```

3. Open `run-$RUN_ID.json`. You should now see the run's `status`, `input` and `output`.

Unlike **Export JSON**, the file keeps the values the run's tool calls wrote, such as an environment variable's. Keep it private.

## With MCP

1. Call `veryfront__get_run` with the run's `run_id`.
2. It worked when the answer holds the run's `status`, `input`, `output` and `usage`. Export JSON saves the same record with the values its tool calls wrote masked.

## Next steps

* [Debug a run](/docs/observability/debug.md)
* [Analyze a run](/docs/observability/analyze-run.md)
