pdfedge
API reference › Unlock

Remove the password from a PDF whose password you have, giving a plain copy

POST/v1/unlock

POST/v1/unlock

Remove the password from a PDF whose password you have, giving a plain copy

Send the password as password (or file.password). It does not guess or crack passwords. A file whose only protection is an owner password (it opens without one) unlocks without it, as any viewer opens it.

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "file": "fil_8kq2wzm4tnb7hdc3vrex",
  "password": "open-sesame"
}
In the full reference
REQUEST
curl -X POST "https://api.pdfedge.com/v1/unlock" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "file": "fil_8kq2wzm4tnb7hdc3vrex",
  "password": "open-sesame"
}'
RESPONSE
200With response=binary: the file itself, with X-File-Id and X-File-Url headers
201Created
{
  "id": "fil_8kq2wzm4tnb7hdc3vrex",
  "object": "file",
  "kind": "result",
  "operation": "unlock",
  "name": "contract-unlocked.pdf",
  "format": "pdf",
  "content_type": "application/pdf",
  "pages": 12,
  "bytes": 284113,
  "url": "https://files.pdfedge.com/f/fil_8kq2wzm4tnb7hdc3vrex.pdf",
  "keep": "1d",
  "created": "2026-10-11T18:10:40Z",
  "expires": "2026-10-12T18:10:40Z",
  "units": 1,
  "encrypted": false,
  "was_encrypted": true,
  "had_open_password": true
}
Try it — sign in first
Runs on a sandbox key: 200 requests a month. Your real key is for production.