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

Accept every pending revision on a document

One derived draft carries all pending edits — a single tracked- changes .docx when output=docx. All accepted revisions point at the same derived_document_id.

POST/revisions/accept-all
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
document_idstringrequired
outputstring
Allowed:pdfdocx
Responses
200

Derived document + accept count

derived_document_idstring
acceptedinteger
404

Resource not found

typestringrequired

Machine-readable error code

statusintegerrequired

HTTP status code

titlestringrequired

Human-readable error message

detailsobject

Field-level validation errors

409

Nothing pending

Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST "https://api.seal.nyc/api/v1/revisions/accept-all" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "document_id": "string",
  "output": "pdf"
}'
Response
{
  "derived_document_id": "string",
  "accepted": 0
}