Skip to content
Seal
Esc
↑↓navigate↵open⌘Jpreview

Unlock an encrypted draft PDF in place

Decrypts a password-protected PDF via LibreOffice re-export and claims the usable bytes back onto the document (the draft was not readable by pdf-lib anyway). Returns libreoffice_roundtrip in warnings — layout may shift on complex documents.

POST/documents/pdf/unlock
Authorization
AuthorizationBearer token · headerrequired

Pass your API key as a Bearer token. API keys are scoped to specific operations — configure scopes in your organization's Settings → Developer → API Keys.

Request body
requiredapplication/json
idstringrequired
passwordstringrequired
max length 128
Responses
200

Unlocked

successboolean
storage_idstring
page_countinteger
warningsstring[]
400

not_encrypted / invalid_pdf / wrong password

Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST "https://api.seal.nyc/api/v1/documents/pdf/unlock" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "string",
  "password": "string"
}'
Response
{
  "success": true,
  "storage_id": "string",
  "page_count": 0,
  "warnings": [
    "string"
  ]
}