n8n+allpdfmagic
Self-hosted friendly

Build PDF automation with n8n

Use the AllPDFMagic API inside any n8n workflow via the HTTP Request node. Process PDFs, extract AI data, and build fully automated document pipelines — self-hosted or cloud.

HTTP Request node setup

Every AllPDFMagic endpoint works as a standard HTTP POST with multipart/form-data. Configure the n8n HTTP Request node like this:

MethodPOST
URLhttps://www.allpdfmagic.com/api/v1/pdf/compress
AuthenticationHeader Auth — Authorization: Bearer YOUR_API_KEY
Body Content TypeForm Data
Body Fieldsfile: (binary from previous node) | level: "medium"
ResponseBinary (for PDF/ZIP outputs) or JSON (for AI endpoints)
n8n HTTP Request node
// n8n HTTP Request node configuration
// Method: POST
// URL: https://www.allpdfmagic.com/api/v1/pdf/compress
// Authentication: Header Auth
//   Name: Authorization
//   Value: Bearer YOUR_API_KEY
// Body Content Type: Form Data
//   file: (Binary input from previous node)
//   level: medium

Workflow templates

Automated invoice processing pipeline

Watch an email inbox or S3 bucket, extract invoice data with AI, store in a database, and send a Slack alert for high-value invoices.

Email Trigger / S3 Trigger
HTTP Request → /api/v1/ai/extract-invoice
IF node: amount > threshold
Postgres/MySQL: Insert row
Slack: Send alert

Contract review and storage

When a contract PDF arrives, run the contract analyzer, extract clauses, and create a structured record in Airtable or Notion.

Webhook trigger (new contract uploaded)
HTTP Request → /api/v1/workflows/extract-clauses
Airtable: Create record with clauses
Email: Notify legal team

Bulk PDF compression cron

Schedule a nightly job to compress all PDFs in a directory and upload them back — saving storage costs automatically.

Schedule trigger (nightly)
Read from disk / S3
Loop over files
HTTP Request → /api/v1/pdf/compress
Write back to disk / S3

Document audit trail

Every time a user uploads a document, watermark it with their name and timestamp, then store the watermarked copy for compliance.

Webhook: user document upload
HTTP Request → /api/v1/pdf/watermark
S3 Upload: store watermarked copy
Postgres: Log audit event

Why n8n + AllPDFMagic

Self-hosted data privacy

Run n8n on your own servers. PDF files flow from your infrastructure → AllPDFMagic → back to your infrastructure. No data stored after processing.

500 free API calls/month

The AllPDFMagic Starter tier is free forever. Build and test your entire n8n workflow before spending a penny.

Binary file support

n8n's HTTP Request node natively supports binary data. Pass PDF files from any source — disk, S3, email attachments — directly to AllPDFMagic.

Start building in minutes

Free API key — 500 calls/month. Works with n8n Cloud and self-hosted.