The SecurePDF Encryptor API allows users to upload a PDF file and receive an encrypted version in response. The API secures the document using AES-128 encryption and supports both user and owner passwords for enhanced protection.
To start using the SecurePDF Encryptor API, follow these steps:
All requests require an API key, passed in the headers as follows:
{ "x-api-key": "YOUR_API_KEY", "x-app-username": "YOUR-API_USERNAME" }
Note: Keep your API key secure and do not share it publicly.
The main endpoint for encrypting PDFs:
{ "POST": "/file/encrypt-pdf" }
Request Parameters:
filepart
: The PDF file to encrypt (required).password
: A strong password for encryption (required).{
"msg": "Your file was encrypted successfully. Use the link below to download the PDF.",
"status": 200,
"data": "https://assets.cysecinnovation.com/encrypted_example.pdf"
}
To ensure fair usage, API requests are limited:
429 Too Many Requests
response.For higher limits, contact our support team.
The API uses standard HTTP status codes for error handling:
{
"status": 400,
"error": "Bad Request",
"message": "Wrong x-api-key and/or x-app-username"
}
{
"status": 400,
"error": "Bad Request",
"message": "Insufficient balance for live API request."
}
Debugging Tips:
© 2025 cysecinnovation All rights reserved