Korala AI · Schema

CreateTemplateFieldDto

IdentityFraud PreventionE-SignatureArtificial Intelligence

Properties

Name Type Description
valueKey string Links repeated text fields for the same signer. Signer edits or clears one occurrence to update every field with this valueKey. Independent of the merge variable used for prefills.
signerRoleId string Signer role ID (optional for non-signing fields)
fieldType object
placement object How the field is positioned. "coordinate" uses absolute x/y/page (correct for fixed-layout PDFs). "anchor" locates anchorText in the rendered document and positions the field per generation (reflow-pr
pageNumber number 1-based page number (coordinate mode). Use -1 for the last page. Ignored for anchor placement.
xPosition number Required for coordinate placement; ignored for anchor.
yPosition number Required for coordinate placement; ignored for anchor.
width number Field box width in points. Korala fits a signature image inside the box, preserving its aspect ratio, then centres it, so a wide box scales the signature by width and leaves vertical padding. The box
height number Field box height in points. Text, date and dropdown values render left-aligned with 4pt padding, centred against the box height, at min(12, height * 0.6) points.
required boolean
mergeFieldName string
defaultValue string
editable boolean Treat a value resolved from variables or defaultValue as a suggestion: the generated field stays unfilled and the signer can change the value before signing. Applies to text, date, and checkbox fields
sharedFill boolean One signer role owns the generated field, but until that signer signs any signer able to act may fill or correct it. Refused on signature and initials fields.
signingDate boolean Date fields only. True fills the field with the date the signer signs: the signing page shows today and the signer does not type it. False makes it an ordinary date the signer enters. Refused on any o
label string Human-readable label shown to the signer for this field
acroFieldName string Fully-qualified name of an embedded AcroForm field in the base PDF (see GET /templates/{id}/form-fields). When set, generated document fields inherit the link and values are written through the PDF fo
acroOptionValue string For radio-group AcroForm fields: the option (export value) this field selects when checked.
options array Allowed values for dropdown fields. The signer picks one; fills with a value outside this list are rejected.
maxLength number Maximum characters accepted at fill time. Imported automatically from AcroForm comb fields by detection.
inputMask stringnull Single-line signer input mask. Each # accepts one digit; Korala inserts every other character as a literal.
validationPattern string Regular expression the filled value must match (text and date fields). Rejected fills return validationMessage.
validationMessage string Signer-facing error when validationPattern does not match
dateFormat string Date fields only: format the auto-filled date is rendered in. Combines D/DD, M/MM, and YY/YYYY tokens with a consistent "-", "/", or "." separator. Copied onto generated document fields.
fontSize number Point size the value is drawn at, copied onto generated document fields. Imported automatically from the base PDF's form fields; omit to fit the size to the box.
textColor string Color the value is drawn in, as #rrggbb
textAlign object Horizontal alignment of the value inside the field box
fontFamily string Base font the value is drawn in, copied onto generated document fields. Imported from the base PDF's form fields; honored when the platform can render that face, otherwise the default font is used.
multiline boolean Whether the value may contain line breaks. Imported from multiline PDF form fields and copied onto generated document fields.
groupKey string Semantic group key. Checkbox members sharing a groupKey are mutually exclusive (checking one clears the others) even with distinct PDF fill targets — e.g. a W-9 federal tax classification.
groupRequired boolean Require at least one member of this field's group to be selected before signing can complete.
requiredWhenFieldId string Make this field conditionally required: on generated documents it must be filled before signing only while the referenced template field (same template, same signer role) is checked/filled — e.g. a W-
requiredWhenValue string Narrow the condition to an exact value of the referenced field. Omit to trigger on any checked/filled state.
anchorText string Literal string to locate in the rendered document for anchor placement. A field is placed at EVERY occurrence. Required when placement is "anchor". Must not contain {{ }} (reserved for merge fields).
anchorPosition object Where the field sits relative to each anchor match. The reference is the match's glyph bounding box (font ascent to descent), not its baseline: "above" places the field bottom against the box top, "be
anchorOffsetX number Horizontal offset in points applied after anchor resolution. Positive moves the field right, negative left.
anchorOffsetY number Vertical offset in points applied after anchor resolution. Coordinates are top-left origin, so positive moves the field DOWN the page and negative moves it UP.
hideAnchor boolean Draw a white rectangle over each visible anchor marker after resolving it (use when the anchor text is not already invisible). This hides the marker without removing it: the anchor string stays in the
anchorMatchWholeWord boolean Match anchorText only at word boundaries. Off by default, because matching has always been a plain substring search and tightening it would silently drop fields that resolve today. Turn it on for shor
bookmarkName string Word bookmark whose position locates this field. Required when placement is "bookmark", and DOCX templates only. A bookmark carries a position without carrying text, so unlike an anchor it leaves noth
View JSON Schema on GitHub

JSON Schema

korala-ai-create-template-field-dto-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/korala-ai/json-schema/korala-ai-create-template-field-dto-schema.json",
  "title": "CreateTemplateFieldDto",
  "x-generated": "2026-11-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/korala-ai-openapi.json#/components/schemas/CreateTemplateFieldDto",
  "type": "object",
  "properties": {
    "valueKey": {
      "type": "string",
      "description": "Links repeated text fields for the same signer. Signer edits or clears one occurrence to update every field with this valueKey. Independent of the merge variable used for prefills."
    },
    "signerRoleId": {
      "type": "string",
      "description": "Signer role ID (optional for non-signing fields)"
    },
    "fieldType": {
      "allOf": [
        {
          "$ref": "#/$defs/FieldType"
        }
      ]
    },
    "placement": {
      "default": "coordinate",
      "description": "How the field is positioned. \"coordinate\" uses absolute x/y/page (correct for fixed-layout PDFs). \"anchor\" locates anchorText in the rendered document and positions the field per generation (reflow-proof, recommended for DOCX).",
      "allOf": [
        {
          "$ref": "#/$defs/FieldPlacement"
        }
      ]
    },
    "pageNumber": {
      "type": "number",
      "description": "1-based page number (coordinate mode). Use -1 for the last page. Ignored for anchor placement."
    },
    "xPosition": {
      "type": "number",
      "description": "Required for coordinate placement; ignored for anchor."
    },
    "yPosition": {
      "type": "number",
      "description": "Required for coordinate placement; ignored for anchor."
    },
    "width": {
      "type": "number",
      "description": "Field box width in points. Korala fits a signature image inside the box, preserving its aspect ratio, then centres it, so a wide box scales the signature by width and leaves vertical padding. The box bounds the ink; it does not size it."
    },
    "height": {
      "type": "number",
      "description": "Field box height in points. Text, date and dropdown values render left-aligned with 4pt padding, centred against the box height, at min(12, height * 0.6) points."
    },
    "required": {
      "type": "boolean"
    },
    "mergeFieldName": {
      "type": "string"
    },
    "defaultValue": {
      "type": "string"
    },
    "editable": {
      "type": "boolean",
      "description": "Treat a value resolved from variables or defaultValue as a suggestion: the generated field stays unfilled and the signer can change the value before signing. Applies to text, date, and checkbox fields."
    },
    "sharedFill": {
      "type": "boolean",
      "description": "One signer role owns the generated field, but until that signer signs any signer able to act may fill or correct it. Refused on signature and initials fields."
    },
    "signingDate": {
      "type": "boolean",
      "description": "Date fields only. True fills the field with the date the signer signs: the signing page shows today and the signer does not type it. False makes it an ordinary date the signer enters. Refused on any other type. Copied onto every document made from the template."
    },
    "label": {
      "type": "string",
      "description": "Human-readable label shown to the signer for this field"
    },
    "acroFieldName": {
      "type": "string",
      "description": "Fully-qualified name of an embedded AcroForm field in the base PDF (see GET /templates/{id}/form-fields). When set, generated document fields inherit the link and values are written through the PDF form field at completion — comb boxes, checkboxes, and length limits render natively — instead of being overlay-stamped."
    },
    "acroOptionValue": {
      "type": "string",
      "description": "For radio-group AcroForm fields: the option (export value) this field selects when checked."
    },
    "options": {
      "description": "Allowed values for dropdown fields. The signer picks one; fills with a value outside this list are rejected.",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "maxLength": {
      "type": "number",
      "description": "Maximum characters accepted at fill time. Imported automatically from AcroForm comb fields by detection."
    },
    "inputMask": {
      "type": [
        "string",
        "null"
      ],
      "description": "Single-line signer input mask. Each # accepts one digit; Korala inserts every other character as a literal."
    },
    "validationPattern": {
      "type": "string",
      "description": "Regular expression the filled value must match (text and date fields). Rejected fills return validationMessage."
    },
    "validationMessage": {
      "type": "string",
      "description": "Signer-facing error when validationPattern does not match"
    },
    "dateFormat": {
      "type": "string",
      "description": "Date fields only: format the auto-filled date is rendered in. Combines D/DD, M/MM, and YY/YYYY tokens with a consistent \"-\", \"/\", or \".\" separator. Copied onto generated document fields."
    },
    "fontSize": {
      "type": "number",
      "description": "Point size the value is drawn at, copied onto generated document fields. Imported automatically from the base PDF's form fields; omit to fit the size to the box."
    },
    "textColor": {
      "type": "string",
      "description": "Color the value is drawn in, as #rrggbb"
    },
    "textAlign": {
      "description": "Horizontal alignment of the value inside the field box",
      "allOf": [
        {
          "$ref": "#/$defs/TextAlign"
        }
      ]
    },
    "fontFamily": {
      "type": "string",
      "description": "Base font the value is drawn in, copied onto generated document fields. Imported from the base PDF's form fields; honored when the platform can render that face, otherwise the default font is used."
    },
    "multiline": {
      "type": "boolean",
      "description": "Whether the value may contain line breaks. Imported from multiline PDF form fields and copied onto generated document fields."
    },
    "groupKey": {
      "type": "string",
      "description": "Semantic group key. Checkbox members sharing a groupKey are mutually exclusive (checking one clears the others) even with distinct PDF fill targets — e.g. a W-9 federal tax classification."
    },
    "groupRequired": {
      "type": "boolean",
      "description": "Require at least one member of this field's group to be selected before signing can complete."
    },
    "requiredWhenFieldId": {
      "type": "string",
      "format": "uuid",
      "description": "Make this field conditionally required: on generated documents it must be filled before signing only while the referenced template field (same template, same signer role) is checked/filled — e.g. a W-9 LLC tax-classification code required only when the LLC box is checked. Refused on choose-one group members."
    },
    "requiredWhenValue": {
      "type": "string",
      "description": "Narrow the condition to an exact value of the referenced field. Omit to trigger on any checked/filled state."
    },
    "anchorText": {
      "type": "string",
      "description": "Literal string to locate in the rendered document for anchor placement. A field is placed at EVERY occurrence. Required when placement is \"anchor\". Must not contain {{ }} (reserved for merge fields). Hiding a marker (white text, or hideAnchor) leaves it in the PDF text layer, where it survives into the signed document. Anchor on text that already belongs in the document when the output must carry no implementation markers."
    },
    "anchorPosition": {
      "default": "replace",
      "description": "Where the field sits relative to each anchor match. The reference is the match's glyph bounding box (font ascent to descent), not its baseline: \"above\" places the field bottom against the box top, \"below\" the field top against the box bottom, \"left\"/\"right\" against its side edges. Anchoring above a ruled underscore line therefore starts about one ascender above the visible rule — correct with anchorOffsetY.",
      "allOf": [
        {
          "$ref": "#/$defs/AnchorPosition"
        }
      ]
    },
    "anchorOffsetX": {
      "type": "number",
      "description": "Horizontal offset in points applied after anchor resolution. Positive moves the field right, negative left."
    },
    "anchorOffsetY": {
      "type": "number",
      "description": "Vertical offset in points applied after anchor resolution. Coordinates are top-left origin, so positive moves the field DOWN the page and negative moves it UP."
    },
    "hideAnchor": {
      "type": "boolean",
      "description": "Draw a white rectangle over each visible anchor marker after resolving it (use when the anchor text is not already invisible). This hides the marker without removing it: the anchor string stays in the PDF text layer, where pdftotext, copy-paste, search and indexing still surface it in the signed document."
    },
    "anchorMatchWholeWord": {
      "type": "boolean",
      "description": "Match anchorText only at word boundaries. Off by default, because matching has always been a plain substring search and tightening it would silently drop fields that resolve today. Turn it on for short anchors: \"By:\" otherwise also matches inside \"Standby:\"."
    },
    "bookmarkName": {
      "type": "string",
      "description": "Word bookmark whose position locates this field. Required when placement is \"bookmark\", and DOCX templates only. A bookmark carries a position without carrying text, so unlike an anchor it leaves nothing in the PDF text layer, and Word keeps names unique so it always resolves to exactly one position. Use letters, digits and hyphens: the converter rewrites every other character to a hex code, so \"Sig_Seller\" is stored as \"Sig5FSeller\" and could collide with a bookmark of that literal name."
    }
  },
  "required": [
    "fieldType",
    "width",
    "height"
  ],
  "$defs": {
    "AnchorPosition": {
      "type": "string",
      "enum": [
        "replace",
        "left",
        "right",
        "above",
        "below"
      ]
    },
    "FieldPlacement": {
      "type": "string",
      "enum": [
        "coordinate",
        "anchor",
        "bookmark"
      ]
    },
    "FieldType": {
      "type": "string",
      "enum": [
        "signature",
        "initials",
        "date",
        "text",
        "checkbox",
        "dropdown",
        "radio"
      ]
    },
    "TextAlign": {
      "type": "string",
      "enum": [
        "left",
        "center",
        "right"
      ],
      "description": "Horizontal alignment of the value inside the field box"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/korala-ai-create-template-field-dto"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.