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

Apply structured values by binding_key

For each document field with properties.binding_key, set default_value from the provided map. Draft documents only. This is the Seal-side of proposal→document sync (GitHub #604) without OCR.

POST/documents/apply-bindings
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
bindingsobjectrequired
Responses
200

Applied

updatedintegerrequired
unmatched_keysstring[]required
400

Invalid request parameters

typestringrequired

Machine-readable error code

statusintegerrequired

HTTP status code

titlestringrequired

Human-readable error message

detailsobject

Field-level validation errors

401

Missing or invalid API key

typestringrequired

Machine-readable error code

statusintegerrequired

HTTP status code

titlestringrequired

Human-readable error message

detailsobject

Field-level validation errors

404

Resource not found

typestringrequired

Machine-readable error code

statusintegerrequired

HTTP status code

titlestringrequired

Human-readable error message

detailsobject

Field-level validation errors

Try it
Server
Authorization
Bodyapplication/json
Request
curl -X POST "https://api.seal.nyc/api/v1/documents/apply-bindings" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "id": "string",
  "bindings": {
    "property1": "string",
    "property2": "string"
  }
}'
Response
{
  "updated": 0,
  "unmatched_keys": [
    "string"
  ]
}