The endpoint accepts multipart/form-data request bodies with the folowing parameters:
file
Required
The content of the input PDF document.
password
Required
The password required to open the file.
The length is between 4 and 32 characters.
The characters in the password must be in the ASCII printable range (between positions 32 and 126). This range includes lowercase and uppercase letters, numbers, space, and some commonly used symbols like . , : ; # $ % & ( ) * + = ? !
Both conditions as a regex pattern: ^[\x20-\x7e]{4,32}$
encryption_algorithm
optional
The algorithm used to encrypt the file.
Valid values are AES-128 and AES-256
The default value is AES-128
Returns
If successful, the call returns a response with Content-Type: application/pdf with the content of the password-protected PDF document. Otherwise, this call returns an error.