BiGapiguides
POST /v1/pdf/protect · 1 cent per operation

Protect PDF

Encrypt a PDF with a password: AES-256 protection with print/modify/copy permissions — password-protect a PDF in one call.

Try it

curl -X POST https://api.bigapi.dev/v1/pdf/protect -H 'Authorization: Bearer $KEY' -F 'file=@in.pdf' -F 'password=secret123' -o protected.pdf

New keys come with 100 free operations, no signup: curl -X POST https://api.bigapi.dev/v1/keys. Failed calls cost nothing.

Parameters

NameMeaning
file requiredPDF to protect.
password requiredUser password (min 4 chars).
ownerPasswordSecond password that lifts the restrictions below. If you leave it out, the user password grants full rights, so set a different one when allowPrint, allowModify or allowCopy matter.
Default: same as password
allowPrintWhether people who open the PDF may print it.
Default: true
allowModifyWhether people who open the PDF may change it.
Default: false
allowCopyWhether people who open the PDF may copy text and images out of it.
Default: true

Result and price

1¢ · 1 cent per operation

Returns application/pdf. Response headers carry the cost (X-BigAPI-Cost) and notes about your input (X-BigAPI-Warnings).

From an agent (MCP)

Connect BiGapi as an MCP server: https://api.bigapi.dev/mcp (hosted) or npx -y @bigapi/mcp (local). Then ask in plain words; the agent finds pdf_protect on its own.