---
title: "Refresh Workspace"
method: POST
path: "/api/agents/{agent_id}/refresh-workspace"
tags: ["agents"]
---

# Refresh Workspace

`POST /api/agents/{agent_id}/refresh-workspace`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/agents/{agent_id}/refresh-workspace`
- Auth: HTTP bearer

Regenerate and upload workspace files for a single active agent.

Reads existing tokens from S3 openclaw.json to avoid token rotation.
Only regenerates .md and skill files (not openclaw.json) by default.

## Path parameters

- `agent_id` string, uuid, required

## Response `202`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tintin-x/apis/tintin-api.md) · [All operations](https://skmtc.dev/tintin-x/apis/tintin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tintin-x/apis/tintin-api/revisions/8839a8d0a66c?raw)
