API & MCP

Everything a person can do on Secure PDF Redactor, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Secure PDF Redactor

Finds words, phrases, regular expressions or typical personal data (e-mails, phone numbers, IBANs, card numbers) and any rectangles you specify, then rebuilds the affected pages as images with black boxes so the hidden text is truly gone. Optionally re-runs OCR so the rest of the page stays searchable, strips metadata, and proves the result with a text search of the output.

Inputs of Secure PDF Redactor
FieldTypeDefaultDescription
file (required)file—PDF. Max 100 MB and 500 pages.
termslist—Words or phrases to redact. One per line, e.g. a name or an account number. Matching ignores upper/lower case unless you turn it on below.
patternslist—Regular expressions (advanced). One JavaScript regular expression per line, e.g. \bDE\d{20}\b.
presetsmultiselect (email, phone, iban, card, date)—Also find
caseSensitivebooleanfalseMatch upper/lower case exactly
areastextarea—Areas to black out. One per line: page (or "all"), x, y, width, height, in points from the top-left corner (72 pt = 1 inch) or in % of the page.
dpiinteger150Resolution of redacted pages. Redacted pages become images. 150 DPI is readable; 300 DPI is sharper but larger.
ocrbooleantrueMake redacted pages searchable again (OCR of the remaining text)
ocrLanguageselect (eng, deu)"eng"OCR language
removeAnnotationsbooleantrueRemove comments, links and form fields from all pages
passwordtext—PDF password (only if the file is protected). Used only to open the file for this conversion; it is written to a private temporary file, never to a command line, and deleted with the job.

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "secure-pdf-redactor": { "type": "http", "url": "https://securepdfredactor.usefulweb.site/mcp" }
  }
}