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

Reorder or delete pages of a draft PDF in place

Rebuilds the draft PDF from an ordered list of 1-based source page numbers. Omit a page to delete it; permute to reorder. Signature fields on deleted pages are removed; survivors are remapped to the new page indices. Does not create child documents (use /documents/split for that).

POST/documents/pdf/organize
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
pagesinteger[]required

New page order using original 1-based page numbers

min items 1 · max items 500
Responses
200

Organized

successboolean
storage_idstring
page_countinteger
fields_removedinteger
fields_remappedinteger
400

Invalid page order (empty, duplicate, or out of range)

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