# POST /files/:id/unpublish

**Resource:** [Files](./files.md)  
**Scopes:** `files:write`  
**Write operation:** yes

Remove the public URL for a previously published document. The file remains in private storage.

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `id` | path | uuid | yes | Document file ID (type=document only) |

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`