Logo

PDF Password API

Start building for free today – no credit card required.

Secure your PDF documents by adding password protection with our API. Simply set a password, and our API ensures your files are encrypted and accessible only to authorized users. Perfect for safeguarding sensitive information and enhancing document security.

Also available as an MCP tool

Claude, ChatGPT, Cursor or your own agent can call add-pdf-security and remove-pdf-security directly.

See what agents can do

Benefits of our PDF Password API

Secure your PDF documents effortlessly with our robust PDF Password API. Add custom passwords to encrypt your files and control access, ensuring that sensitive information remains protected. This feature enhances document security while maintaining a professional appearance, seamlessly integrating into your workflow for secure and efficient file management.

Read our API documentation to learn how to protect PDFs.

Multi-language Code Example

curl -X POST https://apdf.io/api/pdf/security/add \
  -H "Authorization: Bearer TOKEN" \
  -d file="FILE_URL" \
  -d owner_password="OWNER_PASSWORD" \
  -d user_password="USER_PASSWORD"

No-Code PDF Protection

Integrate our PDF API with Zapier Webhooks to automate your PDF protection workflows effortlessly. Whether you're securing sensitive contracts, invoices, or confidential reports, you can trigger PDF protection from hundreds of apps supported by Zapier. Automatically apply password encryption to your documents, safeguarding your data and eliminating the need for manual security settings.

After the API call

Your code made the PDF.
Then it went dark.

Opened, read, re-read, dropped on page 4 — you never see any of it. Share the PDFs you generate through Apdf recipient links, and every signal becomes something you can act on: ping Slack, update the CRM, let an agent follow up. Same account, same API token, one more call.

Your PDF, after sending Live
document:loaded CFO
page:read p4 · 38s
link:clicked pricing

API · Webhook · MCP

Start using our API today.
No trial needed.