---
title: "Restore a document from trash"
method: POST
path: "/v1beta/documents/{document_id}/untrash"
tags: ["Documents"]
---

# Restore a document from trash

`POST /v1beta/documents/{document_id}/untrash`

Restores a document from trash. Previous sharing and access permissions are NOT restored.

## Path parameters

- `document_id` string, required — Document ID.

## Request body

- object — UntrashDocumentRequest identifies the document to restore.

## Response `200`

Success

- UntrashDocumentResponse — UntrashDocumentResponse is empty on success.

## Other responses

- `400` — Invalid request parameters
- `401` — Authentication failed - missing or invalid API key
- `403` — Authorization failed - valid key but insufficient permissions
- `404` — Resource not found
- `429` — Too many requests
- `500` — Internal server error

## Changes

- **2026-03-22** `dc0fae5e4012` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/factify-inc/apis/factify-api/changes/v1beta/documents/:document_id/untrash/post.md)

---

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