> For the complete documentation index, see [llms.txt](https://docs.advantys.com/workflowgen-administration-module-reference-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.advantys.com/workflowgen-administration-module-reference-guide/8.3-4/yousignsend-workflow-application.md).

# YOUSIGNSEND Workflow Application

## Overview

The **YOUSIGNSEND** workflow application lets you send one or more documents to Yousign for electronic signature.

## How it works

* The YOUSIGNSEND application will create a unique envelope and send it to one or multiple signers.<br>
* You can specify one or multiple files per YOUSIGNSEND action. To do this, use the `FILEx` parameter, where `x` corresponds to the file number (e.g `FILE1`). At least one file is required.<br>
* You can specify one or multiple signers. To do this, use the combination of `SIGNER_FIRSTNAME_LIST`, `SIGNER_LASTNAME_LIST`, and `SIGNER_EMAIL_LIST`. You can also use `SIGNER_FIRSTNAMEx` , `SIGNER_LASTNAMEx`, and `SIGNER_EMAILx`, where `x` corresponds to the signer number. <br>
* Application logs are available. These can be specified by setting the value of the `YousignSendLogLevel` parameter in the `web.config` file to `0` to deactivate logs, `1` for error logs, `2` for information logs, or `3` for debug logs; the default value is `0`.

## Configuring the Yousign API

### Create a Yousign API application

1. In the Yousign administration interface, click the **Integrations** tab, then select the **API** menu.\
   ![](https://1421635626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FifwJ9X94VJGndKIGZ9Qn%2Fuploads%2FG3IoY4NNSFf5WAuE5xyX%2FCapture%20d%E2%80%99%C3%A9cran%2C%20le%202024-05-24%20%C3%A0%2011.37.50.png?alt=media\&token=b03bcdc0-cdf3-4011-8156-384057c906d4)<br>

2. Click the **New API key** button.

   <figure><img src="https://1421635626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FifwJ9X94VJGndKIGZ9Qn%2Fuploads%2Fgte8ipyFD9kpV5CpGg3o%2Fimage.png?alt=media&amp;token=47dc9708-fc12-4a10-8986-988690cc966e" alt=""><figcaption></figcaption></figure>

3. Enter a description in the **Description** field. Select an environment (depending on your usage), then select **Full-Access** permissions.\
   ![](https://1421635626-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FifwJ9X94VJGndKIGZ9Qn%2Fuploads%2FpBhML7WJBP2zoIY9MvDm%2Fimage.png?alt=media\&token=d6f33050-3dab-4d8b-98d9-1d2aed9f8547)

## Required parameters

You can use either of the following configurations: with a signers list or with signer numbers.

### With a list of signers

| **Parameter**           | **Type** | **Direction** | **Description**                                                                              |
| ----------------------- | -------- | ------------- | -------------------------------------------------------------------------------------------- |
| `SIGNER_FIRSTNAME_LIST` | TEXT     | IN            | First names of signers, separated by the value defined in the `DATA_SEPARATOR` parameter     |
| `SIGNER_FIRSTNAME_LIST` | TEXT     | IN            | Last names of signers, separated by the value defined in the `DATA_SEPARATOR` parameter      |
| `SIGNER_EMAIL_LIST`     | TEXT     | IN            | Emails of signers, separated by the value defined in the `DATA_SEPARATOR` parameter          |
| `FILEx`                 | FILE     | IN            | File(s) to send, where `x` corresponds to the file number; you can add one or multiple files |

### With signer numbers

| **Parameter**       | **Type** | **Direction** | **Description**                                                                                             |
| ------------------- | -------- | ------------- | ----------------------------------------------------------------------------------------------------------- |
| `SIGNER_FIRSTNAMEx` | TEXT     | IN            | First name(s) of signer(s), where `x` corresponds to the signer number; you can add one or multiple signers |
| `SIGNER_LASTNAMEx`  | TEXT     | IN            | Last name(s) of signer(s), where `x` corresponds to the signer number; you can add one or multiple signers  |
| `SIGNER_EMAILx`     | TEXT     | IN            | Email(s) of signer(s), where `x` corresponds to the signer number; you can add one or multiple signers      |
| `FILEx`             | FILE     | IN            | File(s) to send, where `x` corresponds to the file number; you can add one or multiple files                |

## Optional parameters

### Yousign configuration

| **Parameter**         | **Type** | **Direction** | **Description**                                                                                                                                                                                            |
| --------------------- | -------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `YOUSIGN_API_KEY`     | TEXT     | IN            | <p>Yousign API key<br><br>By default, this value comes from the <code>YousignApiKey</code> parameter in the <code>web.config</code> file.</p>                                                              |
| `YOUSIGN_HOST_SERVER` | TEXT     | IN            | <p>Yousign host server (e.g.  <code><https://api.yousign.app/v3></code>)<br></p><p>By default, this value comes from the <code>YousignHostServer</code> parameter in the <code>web.config</code> file.</p> |

### General

| **Parameter**            | **Type** | **Direction** | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ------------------------ | -------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `DATA_SEPARATOR`         | TEXT     | IN            | <p>Separator used to separate the content of  <code>SIGNER\_FIRSTNAME\_LIST</code>, <code>SIGNER\_LASTNAME\_LIST</code>, <code>SIGNER\_EMAIL\_LIST</code> , <code>SIGNER\_PAGE\_LIST</code>,   <code>SIGNER\_X\_POSITION\_LIST</code>, <code>SIGNER\_Y\_POSTION\_LIST</code> , <code>SIGNER\_PHONE\_LIST</code> , <code>SIGNER\_LOCAL\_LIST</code>, and <code>SIGNER\_AUTH\_MODE\_LIST</code><br><strong>Default :</strong> <code>,</code> (comma)</p> |
| `SIGNER_PAGE_LIST`       | TEXT     | IN            | Page to be signed by the signer(s), separated by the value defined in the `DATA_SEPARATOR` parameter                                                                                                                                                                                                                                                                                                                                                   |
| `SIGNER_PAGEX`           | TEXT     | IN            | Page to be signed by the signer, where `x` corresponds to the signer number; you can add one or more signers                                                                                                                                                                                                                                                                                                                                           |
| `SIGNER_X_POSITION_LIST` | TEXT     | IN            | <p>X position of the signature area for the signer, separated by the value defined in the <code>DATA\_SEPARATOR</code> parameter<br></p><p>The value must be a positive numeric integer.</p>                                                                                                                                                                                                                                                           |
| `SIGNER_X_POSITIONX`     | TEXT     | IN            | <p>X position of the signature area for the signer, where <code>x</code> corresponds to the signer number<br></p><p>The value must be a positive numeric integer.</p>                                                                                                                                                                                                                                                                                  |
| `SIGNER_Y_POSITION_LIST` | TEXT     | IN            | <p>Y position of the signature area for the signer, separated by the value defined in the <code>DATA\_SEPARATOR</code> parameter<br></p><p>The value must be a positive numeric integer.</p>                                                                                                                                                                                                                                                           |
| `SIGNER_Y_POSITIONX`     | TEXT     | IN            | <p>Y position of the signature area for the signer, where <code>x</code> corresponds to the signer number<br></p><p>The value must be a positive numeric integer.</p>                                                                                                                                                                                                                                                                                  |
| `SIGNATURE_NAME`         | TEXT     | IN            | Name of the signature request                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `SIGNER_PHONE_LIST`      | TEXT     | IN            | Phone number of the signer(s), separated by the value defined in the `DATA_SEPARATOR` parameter                                                                                                                                                                                                                                                                                                                                                        |
| `SIGNER_PHONEX`          | TEXT     | IN            | Signer's phone number, where `x` is the signer number.                                                                                                                                                                                                                                                                                                                                                                                                 |
| `SIGNER_LOCALE_LIST`     | TEXT     | IN            | Location of the signer(s), separated by the value defined in the `DATA_SEPARATOR` parameter                                                                                                                                                                                                                                                                                                                                                            |
| `SIGNER_LOCALEX`         | TEXT     | IN            | Location of the signer, where `x` is the signer number                                                                                                                                                                                                                                                                                                                                                                                                 |
| `SIGNER_AUTH_MODE_LIST`  | TEXT     | IN            | Authentication mode of the signer(s), separated by the value defined in the `DATA_SEPARATOR` parameter                                                                                                                                                                                                                                                                                                                                                 |
| `SIGNER_AUTH_MODEX`      | TEXT     | IN            | <p>Signer authentication mode, where <code>x</code> is the signer number<br></p><p><strong>Default:</strong> <code>no\_otp</code> </p>                                                                                                                                                                                                                                                                                                                 |
| `FILE_NATUREX`           | TEXT     | IN            | <p>Nature of the document of the file to send, where <code>x</code> corresponds to the signer number<br></p><p><strong>Default:</strong> <code>signable\_document</code></p>                                                                                                                                                                                                                                                                           |
| `SIGNATURE_WIDTH`        | TEXT     | IN            | <p>Signature field width in pixels<br><br><strong>Default:</strong> <code>25</code></p>                                                                                                                                                                                                                                                                                                                                                                |
| `SIGNATURE_HEIGHT`       | TEXT     | IN            | <p>Signature field height in pixels<br><br><strong>Default:</strong> <code>37</code></p>                                                                                                                                                                                                                                                                                                                                                               |

### Return parameter

| **Parameter**          | **Type** | **Direction** | **Description**                                                                                 |
| ---------------------- | -------- | ------------- | ----------------------------------------------------------------------------------------------- |
| `YOUSIGN_SIGNATURE_ID` | TEXT     | OUT           | Contains the Yousign signature ID; you can use this ID in the YOUSIGNCHECK workflow application |

## Examples

### With a list of signers

| **Parameter**            | **Type** | **Direction** | **Value**                                                 |
| ------------------------ | -------- | ------------- | --------------------------------------------------------- |
| `SIGNER_FIRSTNAME_LIST`  | TEXT     | IN            | `John,Bernard`                                            |
| `SIGNER_FIRSTNAME_LIST`  | TEXT     | IN            | `Bridges,Martin`                                          |
| `SIGNER_EMAIL_LIST`      | TEXT     | IN            | `john.bridges@mycompany.com,bernard.martin@mycompany.com` |
| `SIGNATURE_NAME`         | TEXT     | IN            | `Signature on a contract`                                 |
| `SIGNER_PAGE_LIST`       | TEXT     | IN            | `1,2`                                                     |
| `SIGNER_X_POSITION_LIST` | TEXT     | IN            | `100,100`                                                 |
| `SIGNER_Y_POSITION_LIST` | TEXT     | IN            | `100,100`                                                 |
| `FILE1`                  | FILE     | IN            | `contract.pdf`                                            |
| `YOUSIGN_SIGNATURE_ID`   | TEXT     | OUT           | `xxxxx-xxxxx-xxxxx-xxxxx`                                 |

### With signer numbers

| **Parameter**          | **Type** | **Direction** | **Value**                      |
| ---------------------- | -------- | ------------- | ------------------------------ |
| `SIGNER_FIRSTNAME1`    | TEXT     | IN            | `John`                         |
| `SIGNER_LASTNAME1`     | TEXT     | IN            | `Bridges`                      |
| `SIGNER_FIRSTNAME2`    | TEXT     | IN            | `Bernard`                      |
| `SIGNER_LASTNAME2`     | TEXT     | IN            | `Martin`                       |
| `SIGNER_EMAIL1`        | TEXT     | IN            | `john.bridges@mycompany.com`   |
| `SIGNER_EMAIL2`        | TEXT     | IN            | `bernard.martin@mycompany.com` |
| `SIGNATURE_NAME`       | TEXT     | IN            | `Signature on a contract`      |
| `SIGNER_PAGE1`         | TEXT     | IN            | `1`                            |
| `SIGNER_PAGE2`         | TEXT     | IN            | `2`                            |
| `SIGNER_X_POSITION1`   | TEXT     | IN            | `100`                          |
| `SIGNER_X_POSITION2`   | TEXT     | IN            | `100`                          |
| `SIGNER_Y_POSITION1`   | TEXT     | IN            | `100`                          |
| `SIGNER_Y_POSITION2`   | TEXT     | IN            | `100`                          |
| `FILE1`                | FILE     | IN            | `contract.pdf`                 |
| `YOUSIGN_SIGNATURE_ID` | TEXT     | OUT           | `xxxxx-xxxxx-xxxxx-xxxxx`      |
