# List versions

URL: https://docs.hanzo.ai/docs/openapi/studio/get-studio-runs-by-id-versions

> Lists every version of a creation you may read — the runs in this run's lineage — oldest (version 1) first.

`GET /v1/studio/runs/{id}/versions`

> [Studio →](https://docs.hanzo.ai/docs/openapi/studio) · [All API references →](https://docs.hanzo.ai/docs/openapi) · [Get started →](https://docs.hanzo.ai/docs/guides)

|               |                                                     |
| ------------- | --------------------------------------------------- |
| **Address**   | `https://api.hanzo.ai/v1/studio/runs/{id}/versions` |
| **Method**    | `GET`                                               |
| **Operation** | `get_studio_runs_by_id_versions`                    |
| **Auth**      | `Authorization: Bearer $HANZO_API_KEY`              |

Lists every version of a creation you may read — the runs in this run's
lineage — oldest (version 1) first.

## Request

1 field.

| Field | In   | Type   | Required | Description                             |
| ----- | ---- | ------ | -------- | --------------------------------------- |
| `id`  | path | string | yes      | ID is the resource's id, from the path. |

## Response

| Status    | Body            | Meaning |
| --------- | --------------- | ------- |
| `200`     | studio.RunPage  | ok      |
| `default` | problem-details | refused |

`200` body — 79 fields.

| Field                         | In   | Type            | Always | Description                                                                                                                                                                                                            |
| ----------------------------- | ---- | --------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `data`                        | body | studio.Run\[]   | —      |                                                                                                                                                                                                                        |
| `data[].brand`                | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].charged_cents`        | body | integer (int64) | —      | ChargedCents is what the finished steps cost; final once the run ends.                                                                                                                                                 |
| `data[].created`              | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].creator`              | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].error`                | body | studio.Problem  | —      |                                                                                                                                                                                                                        |
| `data[].error.code`           | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].error.detail`         | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].error.status`         | body | integer (int64) | —      |                                                                                                                                                                                                                        |
| `data[].error.title`          | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].error.type`           | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].estimate_cents`       | body | integer (int64) | —      | EstimateCents is what was reserved when the run started.                                                                                                                                                               |
| `data[].finished`             | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].flow`                 | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].graph`                | body | studio.Graph    | —      |                                                                                                                                                                                                                        |
| `data[].graph.steps`          | body | studio.Spec\[]  | —      | Steps are the graph's steps, 1 to 64 of them.                                                                                                                                                                          |
| `data[].graph.steps[].each`   | body | string          | —      | Each fans the step out: a {{path}} naming an array, run once per item (at most 64), its outputs the items' outputs in order.                                                                                           |
| `data[].graph.steps[].id`     | body | string          | —      | ID names the step within its graph: a lowercase letter, then up to 31 lowercase letters, digits or underscores.                                                                                                        |
| `data[].graph.steps[].op`     | body | string          | —      | Op is what the step does: chat, image.generate, image.edit, voice.speak, music.generate, video.generate, model.generate, studio.render, render.html, render.document, render.slides, render.composition or video.edit. |
| `data[].graph.steps[].title`  | body | string          | —      | Title is what a person sees for the step.                                                                                                                                                                              |
| `data[].graph.steps[].with`   | body | object          | —      | With are the op's parameters.                                                                                                                                                                                          |
| `data[].graph.steps[].with.*` | body | any             | —      |                                                                                                                                                                                                                        |
| `data[].id`                   | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].input`                | body | object          | —      | Input is what the run was given, as its inputs schema reads it.                                                                                                                                                        |
| `data[].input.*`              | body | any             | —      |                                                                                                                                                                                                                        |
| `data[].kind`                 | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].org`                  | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].outputs`              | body | studio.Item\[]  | —      | Outputs are the Library items the run made, the final steps' first.                                                                                                                                                    |
| `data[].outputs[].bytes`      | body | integer (int64) | —      |                                                                                                                                                                                                                        |
| `data[].outputs[].created`    | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].outputs[].download`   | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].outputs[].expires`    | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].outputs[].height`     | body | integer (int64) | —      |                                                                                                                                                                                                                        |
| `data[].outputs[].id`         | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].outputs[].kind`       | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].outputs[].mime`       | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].outputs[].mine`       | body | boolean         | —      |                                                                                                                                                                                                                        |
| `data[].outputs[].name`       | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].outputs[].origin`     | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].outputs[].owner`      | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].outputs[].pages`      | body | integer (int64) | —      |                                                                                                                                                                                                                        |
| `data[].outputs[].preview`    | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].outputs[].ref`        | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].outputs[].seconds`    | body | number (double) | —      |                                                                                                                                                                                                                        |
| `data[].outputs[].shared`     | body | boolean         | —      |                                                                                                                                                                                                                        |
| `data[].outputs[].source`     | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].outputs[].url`        | body | string          | —      | URL opens the file inline; Download saves it; Preview is its still.                                                                                                                                                    |
| `data[].outputs[].width`      | body | integer (int64) | —      |                                                                                                                                                                                                                        |
| `data[].parent`               | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].root`                 | body | string          | —      | Root is the first version's id; equal to id on version 1.                                                                                                                                                              |
| `data[].shared`               | body | boolean         | —      |                                                                                                                                                                                                                        |
| `data[].started`              | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].status`               | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].steps`                | body | studio.Step\[]  | —      |                                                                                                                                                                                                                        |
| `data[].steps[].attempt`      | body | integer (int64) | —      | Attempt is how many times the step has started.                                                                                                                                                                        |
| `data[].steps[].cost_cents`   | body | integer (int64) | —      |                                                                                                                                                                                                                        |
| `data[].steps[].error`        | body | studio.Problem  | —      |                                                                                                                                                                                                                        |
| `data[].steps[].error.code`   | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].steps[].error.detail` | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].steps[].error.status` | body | integer (int64) | —      |                                                                                                                                                                                                                        |
| `data[].steps[].error.title`  | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].steps[].error.type`   | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].steps[].executor`     | body | string          | —      | Executor is where the step runs: gateway, studio.render, render or flow\.run.                                                                                                                                          |
| `data[].steps[].finished`     | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].steps[].id`           | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].steps[].items`        | body | integer (int64) | —      | Items is how many items a step with each fanned out to.                                                                                                                                                                |
| `data[].steps[].message`      | body | string          | —      | Message is what the step is doing now, for a person.                                                                                                                                                                   |
| `data[].steps[].op`           | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].steps[].outputs`      | body | string\[]       | —      | Outputs are the Library item ids the step made.                                                                                                                                                                        |
| `data[].steps[].progress`     | body | number (double) | —      |                                                                                                                                                                                                                        |
| `data[].steps[].started`      | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].steps[].status`       | body | string          | —      | Status is pending, queued, running, succeeded, failed, canceled or skipped.                                                                                                                                            |
| `data[].steps[].text`         | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].steps[].title`        | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].template`             | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].text`                 | body | string          | —      | Text is the last chat step's text, when the run's product is words.                                                                                                                                                    |
| `data[].title`                | body | string          | —      |                                                                                                                                                                                                                        |
| `data[].version`              | body | integer (int64) | —      |                                                                                                                                                                                                                        |
| `next`                        | body | string          | —      |                                                                                                                                                                                                                        |

Failure carries the platform error shape — see [Errors](https://docs.hanzo.ai/docs/errors).

## Examples

**CLI**

```bash
hanzo studio runs versions <id>
```

**SDK**

**.ts**

```ts
import { Configuration, StudioApi } from 'hanzoai';

const api = new StudioApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getStudioRunsByIdVersions({ id: 'id' });
```

**.py**

```python
from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import StudioApi

client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = StudioApi(client).get_studio_runs_by_id_versions(id='id')
```

**.go**

```go
cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)

resp, _, err := client.StudioAPI.GetStudioRunsByIdVersions(context.Background()).Execute()
if err != nil {
	return err
}
```

**.rs**

```rust
use hanzo_client::apis::{configuration::Configuration, studio_api};

let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();

let result = studio_api::get_studio_runs_by_id_versions(&cfg, Default::default()).await?;
```

**.java**

```java
import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.StudioApi;

ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));

var result = new StudioApi(client).getStudioRunsByIdVersions();
```

**HTTP**

```bash
curl https://api.hanzo.ai/v1/studio/runs/<id>/versions \
  -H "Authorization: Bearer $HANZO_API_KEY"
```

**MCP**

MCP reaches **studio** through the `studio` tool, which names its 32 operations with its own verbs — this one among them, under a name only MCP declares. `describe` explains any of them:

```bash
curl -X POST https://api.hanzo.ai/v1/mcp \
  -H "Content-Type: application/json" \
  -d '{
       "jsonrpc": "2.0",
       "id": 1,
       "method": "tools/call",
       "params": {
         "name": "describe",
         "arguments": {
           "op": "list_studio_brands"
         }
       }
     }'
```

---

[Studio API](https://docs.hanzo.ai/docs/openapi/studio) · [All Hanzo APIs](https://docs.hanzo.ai/docs/openapi) · [Interactive reference](https://docs.hanzo.ai/docs/openapi/reference)
