Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Defining Signature Fields (Signature routine)

Signature Routine tasks use the same field definition methods as Single Tasks, with three additional required fields on every signature position object:

Field
Type
Description

ClientId

int

The specific signer this field belongs to

SignatureRoutineSignerNumber

int

Signing order (1 = first to sign, 2 = second, etc.)

IsSignatureRoutine

bool

Must be true on all fields

For all other field options, see Defining Signature Fields - Single Task.


Method 1 - Coordinates Array (SignaturePositions)

Each object in the array is assigned to a specific signer via ClientId and SignatureRoutineSignerNumber. A single document can have multiple signers, each with their own field.

{
  "SignaturePositions": [
    {
      "X": 20,
      "Y": 100,
      "Width": 30,
      "Height": 20,
      "Page": 1,
      "SignaturePositionTypeId": 1,
      "SignaturePositionStageTypeId": 0,
      "SignaturePositionFieldType": 0,
      "IsMultipleOptionsCheckbox": false,
      "PositionTextContent": null,
      "CheckBoxSelected": false,
      "ClientId": 49728,
      "SignatureRoutineSignerNumber": 1,
      "IsSignatureRoutine": true
    },
    {
      "X": 20,
      "Y": 140,
      "Width": 30,
      "Height": 20,
      "Page": 1,
      "SignaturePositionTypeId": 1,
      "SignaturePositionStageTypeId": 0,
      "SignaturePositionFieldType": 0,
      "IsMultipleOptionsCheckbox": false,
      "PositionTextContent": null,
      "CheckBoxSelected": false,
      "ClientId": 49729,
      "SignatureRoutineSignerNumber": 2,
      "IsSignatureRoutine": true
    }
  ]
}

Each signer must have at least one field with their ClientId. SignatureRoutineSignerNumber sets the signing order in a sequential routine — signer 1 signs first, then signer 2, and so on.


Method 2 — ASCII Marker

Use this method when the PDF already contains marker characters instead of fixed coordinates.

The system scans the document for each SearchCharSignature value and creates the signer field where that marker appears.

Each object inside SearchWordForSignatureRoutine maps:

  • one marker in the PDF

  • one signer in the routine

  • one signer order value

Two supported signer modes

You can identify the signer in two ways:

  1. by existing ClientId

  2. by inline signer details with ClientId: null

Example 1 - Existing clients by ClientId

Use this when the signers already exist in your account.

The marker is linked to a saved client record through ClientId. You do not need to send ClientPhones or ClientEmails in the field object when the existing client record already identifies the signer.

In this example:

  • every ### marker is assigned to client 686185

  • every @@@ marker is assigned to client 569520

  • SignerNumberInRoutine maps each marker to signer 1 and signer 2

This is the best option when your routine uses known clients and you already have their IDs.

Example 2 - No ClientId, signer details sent in the request

Use this when the signers do not have saved client records, or when you want to send to one-time recipients directly from the request.

Set ClientId to null, then provide the signer details in the same object. In this mode, include ClientName and at least one delivery channel such as ClientEmails or ClientPhones.

In this example:

  • $ creates the field for the first signer

  • ^ creates the field for the second signer

  • the recipient details come directly from ClientName, ClientEmails, and ClientPhones

This is useful for ad hoc routines where you do not want to create or look up client records first.

SignatureRoutineAsync: true sends the routine in parallel. If signing order matters, set SignatureRoutineAsync to false. SignerNumberInRoutine should still match the intended signer in both modes.

Last updated