PDF Password Protection
Learn how to generate password-protected PDFs with PDFMonkey.
How it works
{
"_password": "your-secret-password"
}Using the API
curl \
"https://api.pdfmonkey.io/api/v1/documents" \
-X POST \
-H 'Authorization: Bearer YOUR-API-KEY' \
-H 'Content-Type: application/json' \
-d '{
"document": {
"document_template_id": "ID-OF-YOUR-TEMPLATE",
"status": "pending",
"payload": {
"clientName": "Jane Doe",
"contractId": "CTR-2026-042"
},
"meta": {
"_filename": "contract-jane-doe.pdf",
"_password": "s3cur3-p@ss!"
}
}
}'Good to know
Use cases
See also
Last updated
Was this helpful?
