Remove password protection from a PDF (requires the correct password – wrong password returns 401).
| Name | Type | Description |
|---|---|---|
file | file · required | Protected PDF. |
password | string · required | The password. |
curl -X POST https://api.bigapi.dev/v1/pdf/unlock -H 'Authorization: Bearer $KEY' -F 'file=@protected.pdf' -F 'password=secret123' -o unlocked.pdf
HTTP/1.1 200 OK
Content-Type: application/pdf
(decrypted PDF body)
# wrong password:
HTTP/1.1 401 { "error": "wrong_password" }