Box Developer Documentation

Join BoxWorks 2024 to discover what's possible with content and AI!

Register now!

Box Sign template

A Box Sign template object

string
4206996024-14944f75-c34b-478a-95a1-264b1ff80d35

Template identifier.

string
sign-template

object type

Value is always sign-template

Additional information on which fields are required and which fields are not editable.

["email_subject","name"]

Non editable fields.

Required fields.

array array
[["email"],["email"]]

Required signer fields.

string array
["email"]
true

Indicates if the template email settings are editable or not.

false

Indicates if the template input fields are editable or not.

true

Indicates if the template files are editable or not. This includes deleting or renaming template files.

true

Indicates if the template document options are editable or not, for example renaming the document.

false

Indicates if the template signers are editable or not.

Custom branding applied to notifications and signature requests.

9E5E6F

Custom branding color in hex.

Corporation inc.

Name of the company

data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA AAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A 8AAQUBAScY42YAAAAASUVORK5CYII=

Custom branding logo URI in the form of a base64 image.

integer
20730

Set the number of days after which the created signature request will automatically expire if not completed. By default, we do not apply any expiration date on signature requests, and the signature request does not expire.

Hello! Please sign the document below

Message to include in signature request email. The field is cleaned through sanitization of specific characters. However, some html tags are allowed. Links included in the message are also converted to hyperlinks in the email. The message may contain the following html tags including a, abbr, acronym, b, blockquote, code, em, i, ul, li, ol, and strong. Be aware that when the text to html ratio is too high, the email may end up in spam filters. Custom styles on these tags are not allowed. If this field is not passed, a default message will be used.

Sign Request from Acme

Subject of signature request email. This is cleaned by sign request. If this field is not passed, a default subject will be used.

string
Official contract

The name of the template.

The destination folder to place final, signed document and signing log. Only ID and type fields are required. The root folder, folder ID 0, cannot be used.

object array

Array of signers for the template.

Note: It may happen that some signers specified in the template belong to conflicting segments (user groups). This means that due to the security policies, users are assigned to segments to prevent exchanges or communication that could lead to ethical conflicts. In such a case, an attempt to send a sign request based on a template that lists signers in conflicting segments will result in an error.

Read more about segments and ethical walls.

example@mail.com

Email address of the signer

object array
text

Type of input

Value is one of signature,date,text,checkbox,attachment,radio,dropdown

true

Checkbox prefill value

text

Content type of input

Value is one of signature,initial,stamp,date,checkbox,text,full_name,first_name,last_name,company,title,email,attachment,radio,dropdown

Where the input is located on a page.

0.672258592471358

Relative x coordinate to the page the input is on, ranging from 0 to 1.

0.18654283173599448

Relative y coordinate to the page the input is on, ranging from 0 to 1.

string (date)
2021-04-26

Date prefill value

The size of the input.

0.05311728090109673

Relative height to the page the input is on, ranging from 0 to 1.

0.2618657937806874

Relative width to the page the input is on, ranging from 0 to 1.

123075213-eb54b537-8b25-445e-87c1-5a1c67d8cbd7

Document identifier.

1234

This references the ID of a specific tag contained in a file of the signature request.

["Yes","No","Maybe"]

When the input is of the type dropdown this values will be filled with all the dropdown options.

da317330-225a-4c72-89ad-0d6dcaaf4df6

When the input is of type radio they can be grouped to gather with this identifier.

true

Whether or not the input is required.

Legal name

The label field is used especially for text, attachment, radio, and checkbox type inputs.

4

Index of page that the input is on.

true

Whether this input was defined as read-only(immutable by signers) or not

text

Text prefill value

true

Used in combination with an embed URL for a sender. After the sender signs, they will be redirected to the next in_person signer.

Jane Doe

A placeholder label for the signer set by the template creator to differentiate between signers.

20

Order of the signer

RJZYYVPR

An identifier for the signer. This can be used to identify a signer within the template.

signer"signer"

Defines the role of the signer in the signature request. A role of signer needs to sign the document, a role approver approves the document and a final_copy_reader role only receives the final signed document and signing log.

Value is one of signer,approver,final_copy_reader

cd4ff89-8fc1-42cf-8b29-1890dedd26d7

If provided, this value points signers that are assigned the same inputs and belongs to same signer group. A signer group is not a Box Group. It is an entity that belongs to the template itself and can only be used within Box Sign requests created from it.

List of files to create a signing document from. Only the ID and type fields are required for each file.

Response Example

{
  "id": "4206996024-14944f75-c34b-478a-95a1-264b1ff80d35",
  "type": "sign-template",
  "additional_info": {
    "non_editable": [
      "email_subject",
      "name"
    ],
    "required": {
      "signers": [
        [
          "email"
        ],
        [
          "email"
        ]
      ]
    }
  },
  "are_email_settings_locked": true,
  "are_fields_locked": false,
  "are_files_locked": true,
  "are_options_locked": true,
  "are_recipients_locked": false,
  "custom_branding": {
    "branding_color": "9E5E6F",
    "company_name": "Corporation inc.",
    "email_footer_text": "Contact email email@mail.com",
    "logo_uri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA\nAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNk+A\n8AAQUBAScY42YAAAAASUVORK5CYII="
  },
  "days_valid": 2,
  "email_message": "Hello! Please sign the document below",
  "email_subject": "Sign Request from Acme",
  "name": "Official contract",
  "parent_folder": {
    "id": "12345",
    "type": "folder",
    "etag": "1",
    "name": "Contracts",
    "sequence_id": "3"
  },
  "ready_sign_link": {
    "folder_id": "12345",
    "instructions": "Hello! Please sign the document below",
    "is_active": false,
    "is_notification_disabled": true,
    "name": "Official contract",
    "url": "\"https://app.box.com/sign/\nready-sign-link/a1cdf2c7-fa81-4a67-8163-1e5f4dbe5178\""
  },
  "signers": [
    {
      "inputs": [
        {
          "document_tag_id": "1234",
          "text_value": "text",
          "checkbox_value": true,
          "date_value": "2021-04-26",
          "type": "text",
          "content_type": "text",
          "is_required": true,
          "page_index": 4,
          "document_id": "123075213-eb54b537-8b25-445e-87c1-5a1c67d8cbd7",
          "dropdown_choices": [
            "Yes",
            "No",
            "Maybe"
          ],
          "group_id": "da317330-225a-4c72-89ad-0d6dcaaf4df6",
          "coordinates": {
            "x": 0.672258592471358,
            "y": 0.18654283173599448
          },
          "dimensions": {
            "width": 0.2618657937806874,
            "height": 0.05311728090109673
          },
          "label": "Legal name",
          "read_only": true
        }
      ],
      "email": "example@mail.com",
      "role": "signer",
      "is_in_person": true,
      "order": 2,
      "signer_group_id": "cd4ff89-8fc1-42cf-8b29-1890dedd26d7",
      "label": "Jane Doe",
      "public_id": "RJZYYVPR"
    }
  ],
  "source_files": [
    {
      "id": "12345",
      "etag": "1",
      "type": "file",
      "sequence_id": "3",
      "name": "Contract.pdf",
      "sha1": "85136C79CBF9FE36BB9D05D0639C70C265C18D37",
      "file_version": {
        "id": "12345",
        "type": "file_version",
        "sha1": "134b65991ed521fcfe4724b7d814ab8ded5185dc"
      }
    }
  ]
}