---
title: "Restore Workspace File"
method: POST
path: "/v1/files/restore/{file_path}"
tags: ["v1", "protected", "files"]
---

# Restore Workspace File

`POST /v1/files/restore/{file_path}`

Move an archived file back to the path it was archived from.

## Path parameters

- `file_path` string, required

## Response `200`

Successful Response

- RestoredFileResponse
  - `path` string, required
  - `restored_from` string, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-03** `7a04ad6f3e0c` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/files/restore/:file_path/post.md)

---

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