Skip to main content
POST
Add PDF Password and Security

Request contract

  • Method and path: POST /apis/v1/pdf-co/pdf-security-add
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/pdf-co/pdf-security-add
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0103 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
url
string
required

URL of the source PDF file to secure.

allowAccessibilitySupport
boolean

Whether to allow content extraction for accessibility; ownerPassword is required to modify this restriction.

allowAssemblyDocument
boolean

Whether to allow document assembly; ownerPassword is required to modify this restriction.

allowContentExtraction
boolean

Whether to allow copying PDF content; ownerPassword is required to modify this restriction.

allowFillForms
boolean

Whether to allow filling interactive form and signature fields; ownerPassword is required to modify this restriction.

allowModifyAnnotations
boolean

Whether to allow interaction with annotations and forms; ownerPassword is required to modify this restriction.

allowModifyDocument
boolean

Whether to allow document modification; ownerPassword is required to modify this restriction.

allowPrintDocument
boolean

Whether to allow printing; ownerPassword is required to modify this restriction.

encryptionAlgorithm
enum<string>

Encryption algorithm for the secured PDF.

Available options:
RC4_40bit,
RC4_128bit,
AES_128bit,
AES_256bit
expiration
integer

Number of minutes before the temporary output link expires.

name
string

File name for the generated PDF.

ownerPassword
string

Owner password used to encrypt the PDF and change document restrictions; it is required when modifying any allow* restriction.

printQuality
enum<string>

Printing quality allowed for the secured PDF.

Available options:
LowResolution,
HighResolution
profiles
object

Advanced PDF.co profile settings.

userPassword
string

Password required to view or print the PDF; this password alone cannot change document restrictions.

Response

Tool result data

error
boolean
required
status
required
credits
integer
duration
integer
name
string
pageCount
integer
remainingCredits
integer
url
string