PDF beta

PDF Protect API

Locks a PDF with a password using AES-256, and limits printing or copying.

Encrypts a PDF with AES-256 so it needs a password to open. Optionally block printing, copying or editing with an owner password. The password is used once to encrypt and is never stored; the job record keeps only that one was set.

What it does

  • AES-256, the strongest PDF encryption
  • Open password plus an optional owner password
  • Allow or block printing, copying and editing
  • Passwords are never stored or logged

Endpoints

MethodPathDescriptionModes
POST /v1/pdf/protect Encrypt with a password sync (sync: 58 s per call)

Base URL: https://api.justapi.tech

Pricing

OperationPrice
Per call, any size$0.005first 1,000 calls a month
Per call, 1,001 to 10,000$0.004per call that month
Per call, over 10,000$0.003per call that month

You are not charged for a failed request, an unreadable or encrypted input, or a bad option. A charge happens only when you get a result.

Limits

Max File SizeYour plan's file limit, 200 MB in total per call
Result RetentionDeleted automatically within 24 hours, or at once when you acknowledge the download

Send a PDF and a password. The file is encrypted with AES-256 and needs the password to open. An optional owner password controls printing, copying and editing. The password is used once to encrypt and is never stored or logged.

Questions

What encryption is used?

AES-256, the strongest standard PDF encryption. Every current PDF reader can open it with the password.

Do you keep the password?

No. It is used in memory to encrypt the file. The job record only notes that a password was set.

Can I block printing but allow opening?

Yes. Set allow_printing to false. Readers that respect permissions then disable printing for anyone without the owner password.

Use cases and what they cost

Use case What it does Calls a month Estimated cost a month
Payroll Encrypts each payslip with the employee's own password before emailing it. 1,500 $7.00
Clinic Protects lab results sent to patients by email. 3,000 $13.00
Accountants Locks year-end statements sent to clients. 300 $1.50
  • Payroll: One call per payslip.
  • Clinic: AES-256, copying disabled.
  • Accountants: Permissions: print yes, edit no.

Costs use the published volume tiers: the first 1,000 calls of the month at tier 1, calls 1,001 to 10,000 at tier 2, and every call after that at tier 3. Failed calls cost nothing, so they are not in these figures.

Recommendations

  • We use AES-256. Old 40-bit RC4 protection is trivial to break and we do not offer it.
  • The password is never stored: the jobs table keeps a hash of the options only.
  • Send the password to the recipient through a different channel than the PDF.
  • Permissions such as "no copying" are honoured by most readers but are not encryption; the open password is the real lock.

How it compares

Protection is one of the cheaper operations on credit plans, so the gap is smaller here. The real difference is what the provider does with your password.

Provider How they bill Cost of one job (a 10-page PDF)
JustAPI Flat $0.005 per call at tier 1, any size; failures free $0.005
PDF.co Security add: 3 credits per page $0.02
iLoveAPI 10 credits per file n/a
ConvertAPI Developer plan: 35 USD a month for 1,000 conversions $0.04
Adobe PDF Services 0.05 USD per document transaction $0.05

Prices checked on 12 November 2026 on each provider's public pricing page. PDF.co figures use their Basic plan (8.99 USD a month on annual billing for 16,500 credits). iLoveAPI does not publish dollar prices for paid credits on its pricing page, so only its credit cost is shown. Plans change; check before you decide.

Pick another provider if you need certificate-based encryption for named recipients rather than a password. The full working is in Password-protect PDF API pricing and what you get, and the step-by-step setup is in the PDF Protect integration guide.

Try it free first

The free pdf protect tool runs the same job in your browser, five times a day, with no account. Use the API for workflows and bigger files. The full parameter list is in the PDF Protect API reference.