Skip to main content
Formalingo

Document Fields

Place and manage fields on document pages.

Document Fields

Fields are positioned elements on document pages — signature boxes, text inputs, date pickers, etc. Coordinates are normalized (0–1) relative to the page dimensions.

GET/api/v1/documents/{id}/fields
Required scope:read:documents
POST/api/v1/documents/{id}/fields

Place a field

Required scope:write:documents
PUT/api/v1/documents/{id}/fields/{fid}

Update a field

Required scope:write:documents
DELETE/api/v1/documents/{id}/fields/{fid}

Remove a field

Required scope:write:documents

Field types

Same types as form questions: digital_signature, initials, short_text, date, email, phone, number, yes_no, mcq, dropdown.

Place a field

Required Fields
NameTypeDescription
labelstringField labelSignature
typeFieldTypeField typedigital_signature
pageNumberinteger1-indexed page number
xfloatNormalized x position (0–1 from left)
yfloatNormalized y position (0–1 from top)
widthfloatNormalized width (0–1)
heightfloatNormalized height (0–1)
Optional Fields
NameTypeDescription
isRequiredbooleanWhether the field must be filledtrue
isReadOnlybooleanPre-filled and lockedfalse
defaultValuestringPre-populated value. Use __today__ for current date.
assigneeRolestringSigner role that fills this fieldsigner_1
directionauto | rtl | ltrText direction for RTL languages
curl -X POST https://app.formalingo.com/api/v1/documents/DOC_ID/fields \
-H "Authorization: Bearer af_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
  "label": "Client Signature",
  "type": "digital_signature",
  "pageNumber": 3,
  "x": 0.1,
  "y": 0.85,
  "width": 0.35,
  "height": 0.06,
  "isRequired": true,
  "assigneeRole": "signer_1"
}'

On this page