1 Credit

PDF redaction API — Permanently remove PII and sensitive data

Nutrient’s PDF redaction API permanently removes sensitive information from documents — names, addresses, account numbers, Social Security numbers, and any custom pattern defined by the caller. Unlike annotation-based tools that overlay black boxes, this API deletes the underlying data from the file so it cannot be recovered.

Permanently remove PII and sensitive data

Redact names, account numbers, addresses, PII, and other confidential information from PDFs with precision, irreversibly and securely.

Automate with Zapier

Automatically redact sensitive text in PDFs using our Zapier integration through a no-code workflow that supports compliance and archival readiness.

Pattern-based compliance workflows

Automatically find and redact content using regex, keywords, or custom search criteria for privacy, legal, financial, and regulated document workflows.

Used by Lufthansa, Disney, Autodesk, UBS, Dropbox, IBM
Lufthansa
Disney
Autodesk
UBS
Dropbox
IBM

Try it out

This example redacts text in your document, effectively and permanently removing the matching content.


Try it out in three steps

  1. Add document.pdf to your project folder.
  2. Run the code from the same folder.
  3. Open result.pdf to see the output.
curl -X POST https://api.nutrient.io/processor/redact \
-H "Authorization: Bearer your_api_key_here" \
-o result.pdf \
--fail \
-F file=@document.pdf \
-F data='{
"strategy": "text",
"strategyOptions": {
"text": "macaque",
"caseSensitive": false
},
"redactionState": "apply"
}'

Start now

Create an account to access your API key and start with 50 free credits per month

Start building with DWS Processor API in minutes — no payment information required.

Already have an account? Sign in →

API comparison

BASIC

Redaction API

A streamlined API designed for fast, secure redaction — perfect for 90 percent of use cases.


FEATURES

  • Simple request format
  • Minimal configuration required
  • Purpose-built for specific tasks
ADVANCED

Build API

Maximum flexibility and advanced features for complex workflows.


FEATURES

  • Multipart document support
  • Advanced actions and transformations
  • Workflow orchestration

What the redaction API removes

The API detects and permanently removes names and addresses, financial data such as account and card numbers, health information (PHI), government IDs and Social Security numbers, email addresses and phone numbers, and any custom pattern defined via regular expressions.

Pattern-based redaction for compliance workflows

Developers can define redaction rules as regular expressions, targeting custom identifiers alongside built-in presets for common PII types. This pattern-based approach supports GDPR Article 17 (the right to erasure) and HIPAA-driven workflows, where teams need to permanently remove personal data from documents at scale rather than review and redact one file at a time.

Redaction vs. annotation — What’s the difference?

An annotation-based tool draws a black box on top of content — the underlying text is still present in the file, recoverable by extracting or inspecting the document’s raw structure. True redaction removes the underlying content itself. Nutrient’s redaction API performs true redaction: It deletes redacted content from the document instead of hiding it behind a mark.



PDF redaction API FAQs

What is PDF redaction?

PDF redaction is the permanent removal of sensitive or confidential content from a document. Unlike covering text with a black box, true redaction deletes the underlying data from the file so it cannot be copied, searched, or recovered. Nutrient’s redaction API performs irreversible redaction on PDFs via REST.

Is redaction permanent?

Yes. Nutrient’s redaction API permanently removes the selected content from the document — it deletes the data instead of hiding it. Once redacted, the information cannot be recovered by any tool, including those that inspect raw PDF structure.

What types of sensitive data can the redaction API detect?

The API can detect and redact names, addresses, phone numbers, email addresses, Social Security numbers, financial account numbers, dates of birth, and any custom pattern defined via regular expressions. It supports both rule-based and pattern-based detection.

Is the redaction API GDPR compliant?

Nutrient’s infrastructure is SOC 2 Type 2 audited and HTTPS-encrypted. The redaction API supports GDPR compliance workflows by enabling permanent erasure of personal data under Article 17 (right to erasure) without requiring manual document review.

What file formats does the redaction API support?

The redaction API supports PDF as the primary format. Documents in other formats (Word, images) can be converted to PDF first using the file converter API and then redacted.

Can redaction be automated across thousands of documents?

Yes. The REST API is designed for batch and high-volume workflows. It integrates into any backend pipeline — Node.js, Python, Java, C#, PHP — to process documents programmatically without manual review of each file.

How does the redaction API compare to manual redaction tools like Adobe?

Adobe Acrobat requires manual selection and review of each document. Nutrient’s redaction API automates detection and removal at scale via REST, making it suitable for compliance pipelines, legal discovery, and enterprise document workflows where manual review is impractical.

What is the difference between redaction and sanitization?

Redaction removes specific content — named entities, patterns — from a document while preserving the rest. Sanitization typically refers to removing all metadata, scripts, or hidden data from a file. Nutrient supports both use cases.

Security is our top priority

SOC 2 Type 2 audited

Nutrient’s infrastructure is SOC 2 Type 2 audited and GDPR-compliant. See our privacy policy and security documentation for details on data handling.

HTTPS encryption

All communication between your application and Nutrient is done via HTTPS to ensure your data is encrypted when it’s sent to us.

Safe payment processing

All payments are handled by Paddle. Nutrient DWS Processor API never has direct access to any of your payment data.

Ready to try it?

Create an account to get your DWS Processor API key and start making API calls.