---
title: "Variable writes for a run"
method: GET
path: "/v1/runs/{runId}/variable-writes"
tags: ["WorkflowVariables"]
---

# Variable writes for a run

`GET /v1/runs/{runId}/variable-writes`

## Path parameters

- `runId` string, required

## Query parameters

- `limit` integer
- `offset` integer

## Response `200`

OK

- ListRunVariableWritesResponse
  - `code` integer
  - `data` PaginatedDataVariableWrite
    - `hasMore` boolean
    - `items` VariableWrite[]
      - `id` integer
      - `name` string
      - `newValue` unknown
      - `oldValue` unknown
      - `op` 'set' | 'manual_set' | 'manual_reset'
      - `runId` string
      - `scope` 'workflow' | 'run'
      - `workflowId` string
      - `writtenAt` string
      - `writtenByNode` string
    - `limit` integer
    - `offset` integer
  - `message` string
  - `requestId` string

---

[API](https://skmtc.dev/b3os/apis/b3os-workflow-api.md) · [All operations](https://skmtc.dev/b3os/apis/b3os-workflow-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/b3os/b3os-workflow-api/revisions/a8c7af3c66a1/schema)
