Send Document Signature Request

Send Document Signature Request

Purpose

Upload a document file and send it for signature to multiple recipients.

Endpoint

POST {{host}}/api/v2/document/send?user_type=ENTERPRISE_API

Authentication

Requires user-token header for authentication.

HeaderValueDescription
user-token{USER-TOKEN}Authentication token

Query Parameters

ParameterRequiredValueDescription
user_typeYesENTERPRISE_APISpecifies the API user type

Request Body (multipart/form-data)

File Upload

FieldTypeDescription
fileFileThe document file to be sent for signature

Signature Mappings

FieldTypeDescription
mappingsJSONJSON array defining signature field placements

Mappings JSON Structure:

{
  "signatures": [
    {
      "id": 0,
      "x": 100,
      "y": 200,
      "width": 150,
      "height": 50,
      "pageNo": 1,
      "isRequired": true
    }
  ]
}
PropertyTypeDescription
idNumberSignature field identifier
xNumberX coordinate position
yNumberY coordinate position
widthNumberWidth of signature field
heightNumberHeight of signature field
pageNoNumberPage number for signature placement
isRequiredBooleanWhether signature is required

Mapping to Recipient Alignment

The mappings.signatures array is index-aligned with the recipient fields.

This means each signature mapping is assigned to a recipient based on its position (index) in the array.

How It Works

  • signatures[0] → corresponds to email_address[0], first_name[0], middle_name[0], last_name[0], receives_email_notifs[0], completed_email_notifs[0], sequence[0]

  • signatures[1] → corresponds to email_address[1], first_name[1], middle_name[1], last_name[1], receives_email_notifs[1], completed_email_notifs[1], sequence[1]

Example

Signatures Mapping

{
  "signatures": [
    {
      "id": "01KP2ZWQVWZ68QH8PZRK1720KN",
      "x": 69,
      "y": 182,
      "width": 100,
      "height": 50,
      "pageNo": 1,
      "isRequired": true
    },
    {
      "id": "01KP2ZX7GVCHY5W05QW4Q9QEVS",
      "x": 69,
      "y": 267,
      "width": 100,
      "height": 50,
      "pageNo": 1,
      "isRequired": true
    }
  ]
}

Recipients (Form Data)

email_address[0]: [email protected]
first_name[0]: John
middle_name[0]: A
last_name[0]: Doe
receives_email_notifs[0]: 1
completed_email_notifs[0]: 1
sequence[0]: 1
email_address[1]: [email protected]
first_name[1]: Jane
middle_name[1]: B
last_name[1]: Smith
receives_email_notifs[1]: 0
completed_email_notifs[1]: 1
sequence[1]: 1

Result

  • First signature (signatures[0]) → assigned to user1

  • Second signature (signatures[1]) → assigned to user2

Important Notes

  • The order must match between signatures and recipient fields.

  • The number of signature mappings should match the number of recipients.

  • Misalignment may result in signatures being assigned to the wrong recipient.

Summary

Each signatures[i] is assigned to the recipient at index i.


Recipient Details (Indexed)

Recipients are specified using indexed fields. For multiple recipients, increment the index (e.g., [0], [1], [2]).

FieldTypeDescription
email_address[n]StringEmail address of recipient
first_name[n]StringFirst name of recipient
middle_name[n]StringMiddle name of recipient
last_name[n]StringLast name of recipient
receives_email_notifs[n]NumberWhether recipient receives email notifications (1 = yes)
completed_email_notifs[n]Number (0 or 1)If set to 1, a completion notification email will be sent to the recipient when the document signing is completed. Set to 0 to disable.
sequence[n]NumberDefines the signing order for recipients. If all recipients have the same sequence number (e.g., all set to 1), they can sign simultaneously. If sequence numbers are incrementing (1, 2, 3...), recipients must sign in that order, one after another.

Example for two recipients:

  • email_address[0], first_name[0], middle_name[0], last_name[0], receives_email_notifs[0], completed_email_notifs[0], sequence[0]

  • email_address[1], first_name[1], middle_name[1], last_name[1], receives_email_notifs[1], completed_email_notifs[1], sequence[1]

Variables Used

VariableDescription
{{host_url}}Base URL for the API
{USER-TOKEN}Authentication token

Post-Response Script

The post-response script automatically sets the project-uuid environment variable from the response for use in subsequent requests.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
Body Params
file
string

Sample format: [{"signatures":[{"id":"01KP2ZWQVWZ68QH8PZRK1720KN","x":69,"y":182,"width":100,"height":50,"pageNo":1,"isRequired":1},{"id":"01KP2ZX7GVCHY5W05QW4Q9QEVS","x":69,"y":267,"width":100,"height":50,"pageNo":1,"isRequired":1}]}]

string
integer

If set to 1, signer receives an email notif. Else, none.

integer

If set to 1, signer receives a completed email notif. Else, none.

integer

Defines the signing order for recipients.

string
string
string
string
integer

If set to 1, signer receives an email notif. Else, none.

integer

If set to 1, signer receives a completed email notif. Else, none.

integer

Defines the signing order for recipients.

string
string
string
string
integer

If set to 1, signer receives an email notif. Else, none.

integer

If set to 1, signer receives a completed email notif. Else, none.

integer

Defines the signing order for recipients.

string
string
string
string
integer

If set to 1, signer receives an email notif. Else, none.

integer

If set to 1, signer receives a completed email notif. Else, none.

integer

Defines the signing order for recipients.

string
string
string
string
string
string
string
string
string
string
string
string

Custom completion redirection url

string

The IP address of the API user to capture the location of the user to be logged in the project history.

Response

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!