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

Bake highlight/text/rect/redact ops onto a draft PDF

POST/documents/pdf/annotate
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
operationsobject[]required
Show properties
Array of object
opstringrequired
Allowed:highlighttextrectredact
pageintegerrequired
xnumber
ynumber
widthnumber
heightnumber
textstring
sizenumber
colorstring
Responses
200

Annotated

Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST "https://api.seal.nyc/api/v1/documents/pdf/annotate" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "string",
  "operations": [
    {
      "op": "highlight",
      "page": 0,
      "x": 0,
      "y": 0,
      "width": 0,
      "height": 0,
      "text": "string",
      "size": 0,
      "color": "string"
    }
  ]
}'
Response
Annotated