# data

Canonical URL: https://developers.iagenify.com/sdk/ref/workflow-run/data/
Language: en

The run as the platform last described it: its status, its input, and every step with what it produced, what it cost and how many attempts it took.

Status: a snapshot · attempts are kept · warnings per step

| Name | Type | Requirement | Description |
| --- | --- | --- | --- |
| `id · workflowId` | string |  | The run, and the workflow it came from. |
| `status` | string |  | `running` · `waiting` · `succeeded` · `failed` · `cancelled`. |
| `input` | object |  | What it was started with. |
| `steps` | array |  | One entry per step — see below. |
| `credits` | integer |  | The whole run. |
| `startedAt · endedAt` | string |  | When. |

## A step entry {#step}

```javascript
{
  id: "write", type: "model.generate", status: "succeeded",
  output: { text: "…", usage: { … } },
  credits: 4,
  error: "",
  warnings: [],
  attempts: [ /* replaced attempts, kept */ ],
  startedAt: "…", endedAt: "…"
}
```

## output is what templates read {#output}

`{{steps.write.output.text}}` reads exactly this. The shape depends on the step type — each one is documented on [its own page](/sdk/workflows/steps).

## attempts keeps what was replaced {#attempts}

> **A retry does not erase the failure**
>
> The replaced attempt moves into attempts, so a run that succeeded on the second try still shows what went wrong on the first. That is the record you want when something intermittent is happening.

## warnings are not failures {#warnings}

A step can succeed and still report something worth knowing — a truncated result, a fallback taken, a value that was not what the chain expected. They are per step, and worth surfacing.

## Not every step runs {#skipped}

A branch not taken leaves its steps untouched. Reading `steps` as a sequence of things that all happened is wrong on any workflow with a condition or a switch.

- [refresh()](/sdk/ref/workflow-run/refresh): Getting a newer snapshot.
- [Warnings](/sdk/workflows/warnings): What they mean.

```python
{
    "id": "write", "type": "model.generate", "status": "succeeded",
    "output": {"text": "…", "usage": {}},
    "credits": 4,
    "error": "",
    "warnings": [],
    "attempts": [],             # replaced attempts, kept
    "startedAt": "…", "endedAt": "…",
}
```
