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

# YOUSIGNCHECK Workflow Application

## Overview

The **YOUSIGNCHECK** workflow application lets you verify the status of an agreement and download its associated file, which is a concatenation of attached files.

## How it works

* You can verify the status of an agreement and download the file from Yousign based on your status criteria.<br>
* Application logs are available. These can be specified by setting the value of the `YousignCheckLogLevel` 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

For instructions on how to configure the the Yousign API, see the [Configuring the Yousign API](/admin/8.3/yousignsend-workflow-application.md#configuring-the-yousign-api) section in the [YOUSIGNSEND Workflow Application](/admin/8.3/yousignsend-workflow-application.md) chapter.

## Required parameter

| **Parameter**          | **Type** | **Direction** | **Description**                       |
| ---------------------- | -------- | ------------- | ------------------------------------- |
| `YOUSIGN_SIGNATURE_ID` | TEXT     | IN            | ID of the Yousign signature to verify |

## Optional parameters

### Yousign configuration

| **Parameters**        | **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**                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ------------------- | -------- | ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `VALID_STATUS_LIST` | TEXT     | IN            | <p>Valid status to download the document<br></p><p><strong>Possible values:</strong></p><ul><li><code>draft</code></li><li><code>ongoing</code></li><li><code>done</code></li><li><code>deleted</code></li><li><code>expired</code></li><li><code>canceled</code></li><li><code>approval</code></li><li><code>rejected</code></li><li><code>declined</code></li></ul><p><strong>Default:</strong> <code>done,canceled,expired,deleted,rejected</code></p> |
| `YOUSIGN_DOCUMENT`  | FILE     | OUT           | Yousign document                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| `YOUSIGN_STATUS`    | TEXT     | OUT           | Agreement status                                                                                                                                                                                                                                                                                                                                                                                                                                          |

## Example with YOUSIGNSEND

In the following example, the YOUSIGNSEND action is directly followed by the YOUSIGNCHECK action. This action will loop back onto itself until the status changes to `done`, `canceled`, `expired`, `deleted`, or `rejected`.

If the status returned meets the condition, the document will be downloaded from Yousign.

<figure><img src="/files/tA2GGef5SyZ6B6bCuw4Z" alt=""><figcaption></figcaption></figure>

With the system loop action function, the YOUSIGNCHECK action will be executed every `x` seconds until the OUT condition is met.

<figure><img src="/files/YHI1YZaWiyM6zM3IbFaP" alt=""><figcaption><p>Configuring a YOUSIGNCHECK action</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.workflowgen.com/admin/8.3/yousigncheck-workflow-application.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
