PDF Redaction API & SDK
Protect confidential data and save valuable time by seamlessly automating PDF redaction with AI-powered accuracy and efficiency.
Free Version Limits: 10 pages per request; 5 request per minute
curl -X POST https://api.pdf-redaction.com/api/anonymize/file/pdf \
-H "X-API-Key: $PDF_REDACTION_API_KEY" \
-F "pdf=@contract.pdf" \
-o contract-redacted.pdfWhy Use Our API?
AI-Powered Redaction
Automatically detects and redacts PII like names, locations, emails, and dates.
Context-Aware Accuracy
Leverages advanced AI to understand context and make precise redactions.
Support Scanned Documents (OCR)
Ideal for batch processing — redact hundreds of documents programmatically.
Support Different Languages
Common languages support: English, Spanish, German, Italian, Russian, etc.
Support Detecting PII in Any Text Orientation
Including rotated or vertical text.
Support Detecting Image-Based PII
Includes signatures, QR codes, and faces.
Secure by Design
HTTPS-only transport; we retain zero data after processing.
Flexible Integration
Use JSON (base64) or multipart/form-data.
On-Premise Deployment
Need control? Run our API on your infrastructure with full data governance.
We Detect The Following PII Tags
These are the types of personally identifiable information (PII) we detect in your data:
- DATE
- PERSON_NAME
- ORGANIZATION
- LOCATION
- PHONE
- ID
- ACCOUNT
- ZIP_CODE
- ADDRESS
- IP
- URL
- SSN
- DRIVER_LICENSE
- PASSPORT
- AGE
- CREDIT_CARD
- MONEY_AMOUNT
- QR_CODE
- SIGNATURE
- FACE
Sample Notebooks
Explore our example notebooks demonstrating how to integrate with the PDF Redaction REST API.
View on GitHubPDF Redaction SDKs
Prefer to run redaction inside your own application? Our open-source SDKs bring the same OCR and PII detection pipeline to Python and JavaScript.
Python SDK: ScaleDP
Runs as a plain Python library or scales out on Apache Spark for batch jobs.
pip install scaledpJavaScript SDK: ScaleDP-TS
Runs OCR, PII detection and redaction in the browser, so documents never leave the device.
npm install @stabrise/scaledpMore Ways to Integrate
Automate redaction without writing code using our n8n nodes, connect AI agents directly through our MCP server, or embed a redaction widget on your own site.
Self-Hosted API
Also available as:
Online ToolStudio (Cloud)Studio (Self-Hosted)Studio DesktopCloud APIPDF Redaction Libraryn8n IntegrationWidgetMCP ServerObsidian PluginSelf-Hosted Deployment
Deploy on your own infrastructure with Docker. Keep full control over your data and compliance.
GDPR & HIPAA Compliant
No data leaves your servers. Perfect for regulated industries requiring on-premise solutions.
Offline Processing
Process documents without internet connectivity. Ideal for air-gapped or secure environments.
Easy Docker Setup
One-command installation with Docker Compose. Professional setup with persistent volumes.
Multi-Language OCR
Built-in OCR supporting 7 languages: English, Spanish, French, German, Italian, Portuguese, Russian.
Flexible Configuration
Customize processing limits, LLM integration, and server settings via environment variables.
14-Day Free Trial
Try the self-hosted API risk-free with a full 14-day trial period to evaluate its capabilities.
PDF Redaction API FAQs
- What is the PDF Redaction API?
- The PDF Redaction API is a RESTful service that allows you to automatically detect and redact sensitive information from PDF documents using AI-powered analysis.
- How do I get started with the API?
- Sign up for an API key, review the documentation, and start making requests to the endpoints. We offer a free tier for testing and prototyping.
- What types of PII can the API detect?
- The API can detect emails, credit card numbers, tax IDs, phone numbers, names, addresses, dates, and other sensitive information automatically.
- Is the API secure?
- Yes, the API uses HTTPS encryption and does not store your documents. Processing is done in memory and data is discarded immediately after processing.
- Can I self-host the API?
- Yes, we offer a self-hosted Docker version of the API for complete data control and on-premise deployment.
- Does the API support multi-page documents?
- Yes, the API supports multi-page PDFs. Processing limits can be configured, with default maximums of 10 pages for PII detection and redaction.
- What languages does the API support?
- The API includes built-in OCR support for 7 languages: English, Spanish, French, German, Italian, Portuguese, and Russian. Additional languages can be supported through custom configurations.
- Does the API detect images like signatures, photos, and QR codes?
- Yes, the API can detect and redact various image-based elements including signatures, QR codes, faces, and other visual PII in PDF documents.
- Does the API support detecting PII in rotated or vertical text?
- Yes, the API can detect and redact PII in text with any orientation, including rotated and vertical text within PDF documents.
- Do you offer a PDF redaction SDK?
- Yes. Besides the REST API, you can run redaction directly in your code with our open-source SDKs: ScaleDP for Python, optionally scaled out on Apache Spark, and ScaleDP-TS for JavaScript and TypeScript in the browser. Both are licensed under AGPL-3.0. Install instructions and code examples are on the PDF redaction library page.
Start Integrating in Minutes
Access documentation, request a trial API key, or schedule an architectural planning session with our team.