# Insulin Apps E-sign

## Overview

E-sign is the electronic-signature app of Insulin Apps. Connecting it lets Fours send your partner agreements for signature through E-sign: PRM's agreement templates and signing run on this connection, and E-sign keeps those templates and envelopes in your Insulin organization. For how agreements are sent, signed and tracked, see [Send Agreements for E-Signature](/prm/agreement-signing/) in PRM.

The integration is listed under the **Legal** category. It gives Fours AI no tools, and agents never use it.

### Org-Level vs User-Level

> **Org-Level**: Supported. One connection, made with the client ID and secret of an E-sign service account, serves your whole organization. Only a Fours admin can connect or disconnect it.
>
> **User-Level**: Not available. Insulin Apps E-sign connects at the org level only.

*Diagram: You create an E-sign service account and give Fours its client ID and secret; Fours checks the pair with E-sign and records your Insulin organization, then PRM sends agreements for signature through it.*

1. Your Fours admin → Insulin Apps E-sign: Create a service account with the Editor or Admin role
2. Your Fours admin → Fours: Client ID + client secret
3. Fours → Insulin Apps E-sign: Sign in with the pair and ask which organization it is
4. Insulin Apps E-sign → Fours: Your Insulin organization (reply)
- Note over Insulin Apps E-sign and Fours: Saved only if the check passes
- PRM agreements:
   5. Fours → Insulin Apps E-sign: Send an agreement for signature
   6. Insulin Apps E-sign → Fours: Signing progress (reply)

## Create Integration (Org-Level)

### Prerequisites

- An **Insulin organization that uses E-sign**. The agreements Fours sends through E-sign are kept in that organization.
- A **service account** created on E-sign's integrations page (`insulinapps.com/apps/esign/settings/integrations`) in that organization, with the **Editor** or **Admin** role so that it can send envelopes. Copy its client ID, which starts with `ia_sa_`, and its client secret, which starts with `ia_sk_`.

### Authenticate with the service account

1. In the Fours Console, go to **Settings → Integration** and find the **Insulin Apps E-sign** card.
2. Click **Connect**, then click **Start connection** in the **Connect Insulin Apps E-sign** dialog.
3. Enter **Client ID (ia_sa_…)** and **Client secret (ia_sk_…)**, then click **Save credentials**.
4. When the dialog shows **Insulin Apps E-sign is connected.**, close it.

### What Fours checks

Before it saves the pair, Fours signs in to Insulin Apps with it, asks E-sign which Insulin organization the service account belongs to, and records that organization on the connection. If the check fails, nothing is saved and the dialog says why:

| Message | What to do |
|---|---|
| *Insulin Apps did not accept this client ID and secret. Copy them again from the service account on E-sign's integrations page.* | Copy both values again from the service account and retry. |
| *This service account cannot use E-sign. Create it on E-sign's integrations page (insulinapps.com/apps/esign/settings/integrations), not another app's.* | The service account was created for another Insulin app. Create one on E-sign's integrations page. |
| *This service account can only view envelopes. Give it the Editor role (or Admin) on E-sign's integrations page, then connect again.* | Change the service account's role to **Editor** or **Admin**, then connect again. |
| *Could not reach Insulin Apps; try again* | Insulin Apps did not answer. Try again in a moment. |

## Edit Integration

To replace the client ID and secret — for example after you rotate the secret — open the card's **⋯** menu, choose **Details**, and click **Reconnect**, then enter the new pair. Use a service account from the same Insulin organization: E-sign keeps your agreement templates and envelopes there.

## Delete Integration

To end the connection, open the Insulin Apps E-sign card's **⋯** menu and choose **Disconnect**. Only a Fours admin can disconnect it. Fours deletes the client ID and secret. Until you connect E-sign again, PRM reads *E-sign is not set up for this organization* where you would create agreement templates.

:::warning
Disconnecting does not delete the service account or anything in E-sign, such as your templates and envelopes. The service account itself is managed on E-sign's integrations page.
:::
