# Connect your own system to E-Sign

What a connection between E-Sign and your own system or Rework app lets you automate, how to prepare your templates and documents, and what signers and senders see.

Source: https://support.rework.com/article/esign-connect-your-system

> **In plain words:** A **connection** lets another system, such as your HR, sales or inventory software, ask E-Sign to collect signatures for one of its records, and lets E-Sign report progress back. Your people click one button in their own software. E-Sign does the signing and returns the result. This page explains what a connection can do and what you prepare in E-Sign beforehand. The connection itself is set up together with the Rework team: contact Rework support to start. You do not need technical knowledge to prepare the E-Sign side. New to E-Sign words? See [E-Sign basics](https://support.rework.com/article/esign-basics).

**Where to find it:** The preparation happens in E-Sign under **Templates** in the left sidebar, and in **Settings** at the bottom of the left sidebar, then **Anchor Tokens** under Integrations. **Who can use it:** Template owners and administrators prepare the E-Sign side. Everyone who works in the connected system benefits from it.

## What a connection lets your system do

| 
Your system can...

 | 

What it means for your people

 |
| --- | --- |
| 

**Create an envelope from a published template**

 | 

One click on a record creates the envelope with the right documents, roles and order already set.

 |
| 

**Create an envelope from its own PDF documents**

 | 

The system produces the contract or quote as a PDF and E-Sign places the signature fields from markers inside the text (see [Markers: place fields from the document text](https://support.rework.com/article/esign-markers)). Nobody drags fields onto the page.

 |
| 

**Fill values by Field key**

 | 

Names, amounts, dates and other data from the record appear in the document fields before the signer opens it. See [Prefilled values and connected apps](https://support.rework.com/article/esign-prefill-connected-apps).

 |
| 

**Lock values**

 | 

A value the sender provided can be shown to the signer as read-only, so the signer cannot change a contract amount.

 |
| 

**Send immediately, or leave a draft**

 | 

The system can send the envelope straight away, or open the draft in a window in the other app so a person checks the recipients and fields first (see [Sign from another Rework app](https://support.rework.com/article/esign-sign-from-rework-apps)).

 |
| 

**Receive status updates**

 | 

Your system hears when an envelope is **sent**, when a person **signed** or **approved**, when someone **declined**, when it is **completed** (with the signed files), when it is **voided**, and when a recipient is added, removed or reassigned.

 |
| 

**Keep linked envelopes per record**

 | 

The record shows all its envelopes with their status. E-Sign shows the same record as the **Source** of each envelope and chains envelopes from one record under **Related documents**.

 |
| 

**Pin a template version**

 | 

The connected system can keep using an approved version of a template while you work on a newer one (see [Pinned versions](#pinned-versions-and-stable)).

 |
| 

**Start a held turn with its values**

 | 

A person whose turn waits for your system signs as soon as the system sends the values their fields need, such as an issued document number. See [Hold a recipient until you're ready](https://support.rework.com/article/esign-recipient-holds).

 |
| 

**Void an envelope**

 | 

A person can cancel from the other system. A completed envelope cannot be voided.

 |
| 

**Retry safely**

 | 

If your system sends the same request twice for the same record, E-Sign returns the envelope it already made instead of creating a second one.

 |

Good to know:

- Each request runs on behalf of a person who **already has a Rework account** in your workspace. That person is shown as the sender.
- The connected system decides **who is allowed to start a signature**. E-Sign trusts the connection, so keep the permissions in your own system strict.
- Recipients do not need an E-Sign account. They sign from an emailed link, as in [Sign a document](https://support.rework.com/article/esign-sign-a-document). Colleagues who use the connected system can also act from the record there.

## Which connection fits you

| 
Your situation

 | 

What to do

 |
| --- | --- |
| 

You use a Rework app such as Inventory, Commerce or e-Office

 | 

The app already has a **Request eSign** style button. Ask your administrator to confirm the connection, then follow [Sign from another Rework app](https://support.rework.com/article/esign-sign-from-rework-apps).

 |
| 

You run your own software and want it to start signatures

 | 

Contact Rework support. The Rework team agrees the setup with you: which templates, which data, which updates you want back.

 |
| 

You only need people outside your company to sign a form

 | 

A [sign form](https://support.rework.com/article/esign-sign-forms) may be enough. It needs no connection.

 |

> **Note:** A connection is set up with the Rework team. E-Sign has no screen where you create access keys or passwords yourself, so please start with a message to Rework support describing your system and the documents you want to sign.

## How to prepare

Do these steps in E-Sign. They are the same whether the connection already exists or is being built.

### Step 1: Publish a template

A **template** is a saved envelope setup: documents, roles, order and fields. A connected system creates envelopes from a **published** template. A draft template cannot be used.

1. In E-Sign, open **Templates** in the left sidebar.
2. Create or open your template. See [Create a template step by step](https://support.rework.com/article/esign-create-template).
3. Publish it. See [Publish a template and manage versions](https://support.rework.com/article/esign-template-publish-versions).

### Step 2: Name each role with an Integration key

A **role** (or **placeholder**) is a seat in the template, such as "Employee" or "HR Manager", that a real person fills later. The **Integration key** is a short lowercase name for that seat, such as `employee`. Your system uses it to say who goes where.

1. In the template workspace, open the **Recipients** panel.
2. In each row, type the key in the small box with the # icon. If you leave it empty, E-Sign makes one from the label ("HR Manager" becomes `hr_manager`).
3. Write the keys down. The connected system must use exactly these names.

See [Placeholders: set up roles, then fill in people](https://support.rework.com/article/esign-template-placeholders).

### Step 3: Give fields a Field key

A **Field key** is the name of a value, such as `contract_value`. When your system sends a value under that name, the field is filled in.

1. Select a field in the editor.
2. In the field's settings, fill in **Field key** (marked "(integration)").
3. Use lowercase letters, digits and underscores.

See [Field settings: required, validation, keys and formatting](https://support.rework.com/article/esign-field-settings) and [Fields, keys and variables in a template](https://support.rework.com/article/esign-template-fields-variables).

> **Tip:** Share the list of Field keys and Integration keys with the people building the connection, as a simple table: key, what it holds, example value. Renaming a key later stops the prefill silently, so change keys only together with the connection.

### Step 4: Add markers if the system produces its own PDFs

If your system generates each document, it can type markers such as `{{sig:employee}}` or `{{text:employee key=national_id}}` into the text. E-Sign then places the fields for you and hides the markers. The full rules are in [Markers: place fields from the document text](https://support.rework.com/article/esign-markers). Documents sent by a connected system must be PDF files.

### Step 5: Decide which version the system uses

See the next section.

### Step 6: Tell the Rework team what you prepared

Send Rework support:

- the **template name**, and which **version** the system should use;
- the **Integration keys** and **Field keys**;
- whether envelopes should be **sent immediately** or opened as a draft for a person to check;
- which **status updates** you want back in your system.

## Pinned versions and stable

A template can change over time. A connection can follow it in one of three ways. The template page shows this for each connected app under **Connected apps** (see [The template page: usage, versions and health](https://support.rework.com/article/esign-template-page)).

| 
What the page says

 | 

What the connection uses

 |
| --- | --- |
| 

**Stable (v3)**

 | 

The published version of the template, which is version 3 right now. When you publish version 4, the connection follows.

 |
| 

**Pinned to v2**

 | 

A frozen version number. New published versions do not reach the connected system until the pin is changed.

 |
| 

**Follows draft**

 | 

The version you are editing right now

 |

A pin protects a live process: your connected system keeps getting the version legal approved, while you improve the next one. The page then shows the connection as **Outdated** so that you remember to move the pin. See [Prefilled values and connected apps](https://support.rework.com/article/esign-prefill-connected-apps#the-connected-apps-panel) for the meaning of the health dots.

## What people see

**The signer.** A normal signing experience: an email with a link (or a button in the other app), the document, and the fields they must fill. Values your system filled in are already there. Locked ones show as read-only.

**The sender.** In the other app: a **Request eSign** button, a window with E-Sign's sending screen if a draft is opened, and a list of envelopes with statuses on the record.

**You, in E-Sign.** Each envelope shows **Source** and **Source name** in the right panel **Envelope information**, so you can tell which system and which record it came from.

![The envelope page right panel "Envelope information" with Source](https://storage.googleapis.com/reworkv3-public/success/261015/IGvE507UJWHnvGTyaxBsBZHoUztjKHalv3YXEVHM4gCTRYwkwYY5klJwXsyRRxDf/img.6G8aQod8NY5GsIxuymTP9wyQsGwdGndlSZFXKXu46kbvMYcCWAoYFX05zR9r1bgr.png)

## Troubleshooting

| 
Problem

 | 

Why it happens

 | 

What to do

 |
| --- | --- | --- |
| 

The system cannot create an envelope and mentions the template is not published

 | 

Only published templates can be used

 | 

Publish the template. See [Publish a template and manage versions](https://support.rework.com/article/esign-template-publish-versions)

 |
| 

A role is refused or an envelope is not created

 | 

The system names a role that does not exist, or no name and email is given for a role when sending at once

 | 

Compare the Integration keys in the **Recipients** panel with what the system sends

 |
| 

A field is not filled in

 | 

The key in the system differs from the **Field key** in the template, for example a capital letter

 | 

Make them identical, lowercase

 |
| 

Markers are not placed

 | 

The marker breaks a rule, or the PDF has no text

 | 

See [Markers: place fields from the document text](https://support.rework.com/article/esign-markers#strict-rules)

 |
| 

The other app's window does not open or shows an error

 | 

The connection between the apps needs attention

 | 

Contact Rework support

 |
| 

The record does not show new statuses

 | 

Updates back to the other system need attention

 | 

Contact Rework support

 |
