Guides / PDF

Unlock PDF

POST /v1/pdf/unlock  · 

Remove password protection from a PDF (requires the correct password – wrong password returns 401).

Parameters

NameTypeDescription
filefile · requiredProtected PDF.
passwordstring · requiredThe password.

Example request

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

Example response

HTTP/1.1 200 OK
Content-Type: application/pdf

(decrypted PDF body)

# wrong password:
HTTP/1.1 401 { "error": "wrong_password" }

Related guides