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:
// 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.
Contract review and storage
When a contract PDF arrives, run the contract analyzer, extract clauses, and create a structured record in Airtable or Notion.
Bulk PDF compression cron
Schedule a nightly job to compress all PDFs in a directory and upload them back — saving storage costs automatically.
Document audit trail
Every time a user uploads a document, watermark it with their name and timestamp, then store the watermarked copy for compliance.
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.