---
title: "Sync Sandbox Workspace Files"
method: POST
path: "/auto-agent/run/{run_id}/workspace-files"
tags: ["auto-agent"]
---

# Sync Sandbox Workspace Files

`POST /auto-agent/run/{run_id}/workspace-files`

Sync partial workspace files so the UI can show progress mid-run.

Args:
    run_id: Run UUID from the path.
    body: Optional fields ``deliverables_json``, ``final_report``,
        ``curation_report`` — missing fields preserve the existing value.
    callback_token: One-time token issued at run creation.

Raises:
    HTTPException 401: Token invalid or run already finalized.
    HTTPException 404: Run not found.

## Path parameters

- `run_id` string, required

## Headers

- `X-Callback-Token` string, required

## Request body

- SandboxWorkspaceFilesRequest — Partial workspace files synced from the sandbox while the run is running.
  - `deliverables_json` object, nullable
  - `final_report` string, nullable
  - `curation_report` string, nullable

## Response `204`

Successful Response

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/pioneer/apis/brain-api.md) · [All operations](https://skmtc.net/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pioneer/brain-api/versions/31dfe831e079/schema)
