---
title: Redact Content from PDF File API
slug: redact-content-from-pdf-file
url: https://apyhub.com/freedailypro/service/redact-content-from-pdf-file
provider: FreeDailyPro
tags: [redact, pdf, redaction, privacy, sensitive-data]
auth: api_key
version: v1
service_type: sync
endpoints: 1
atoms: 10
mcp: true
---

# Redact Content from PDF File API

Permanently redact sensitive areas of a PDF with one API call. Send page numbers and box coordinates, and get a PDF with those areas blacked out for good.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/freedailypro/redact-content-from-pdf-file/redact` | What it does Permanently redacts specified rectangular areas from a PDF and returns the modified PD… | 10 |

## Endpoint reference

### Permanently redact areas of a PDF

`POST https://api.eu.apyhub.com/freedailypro/redact-content-from-pdf-file/redact` · 10 atoms · accepts `multipart/form-data` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `file` | body | string (binary) | yes | The PDF. Up to 20 MB. |
| `boxes` | body | string | yes | JSON object: page number to a list of boxes, for example {"1":[{"x":50,"y":700,"width":200,"height":20}]} |

#### Quickstart

Redact sensitive areas in a PDF by uploading the file and the redaction boxes as multipart form fields.

```bash
curl -X POST "https://api.eu.apyhub.com/freedailypro/redact-content-from-pdf-file/redact" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/document.pdf" \
  -F 'boxes={"1":[{"x":50,"y":700,"width":200,"height":20}]}'
```

#### What you'll get back

Returns a binary file (`string` with `format: binary`) containing the redacted PDF.

## About

## What it does
PDF Redaction lets you permanently remove sensitive content from a PDF by sending the file and a set of redaction boxes. You define the target areas by page number and box coordinates, and the API returns a redacted PDF as a binary file.

Use it when you need to publish or share documents without exposing personal data, account numbers, internal notes, or other confidential text and images. The request accepts one PDF file up to 20 MB and a `boxes` string containing a JSON object that maps page numbers to lists of rectangles. Each rectangle uses `x`, `y`, `width`, and `height` values so you can target exact regions on the page.

The response is the modified PDF file, ready to store, download, or pass to the next step in your workflow. Typical uses include legal document cleanup, compliance workflows, support ticket attachments, and document sharing pipelines where specific areas must be removed before release.

Because the redaction is applied in the output PDF itself, you can build automated systems that remove sensitive areas before a document leaves your app.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/freedailypro/service/redact-content-from-pdf-file
