> For the complete documentation index, see [llms.txt](https://api.esignon.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.esignon.net/eng-1/workflow/downloadurl.md).

# Create Download URL

Create URL for downloading the document using the company ID and document ID.

&#x20;Can only access documents where users who retain the token values entered under Authorization can view. (logged-in users)

The created URL is valid for 5 minutes.

## workflow\_download

<mark style="color:green;">`POST`</mark> `https://docs.esignon.net/workflow/download`

#### Headers

| Name          | Type   | Description         |
| ------------- | ------ | ------------------- |
| Authorization | string | **esignon {token}** |
| Content-Type  | string | application/json    |

#### Request Body

| Name         | Type   | Description              |
| ------------ | ------ | ------------------------ |
| workflow\_id | string | ID of completed document |
| client\_id   | string | ID issued by esignon     |

{% tabs %}
{% tab title="200 " %}

```javascript
{
	"header":{
		"response_code": "",
		"result_code": "00",
		"result_msg": "Success",
		"session_id": ""
	},
	"body":{
		"cert_url": "{History Certificate Download URL}",
		"doc_url": "{Document Download URL}",
		"workflow_name": "{Completed Document Name}"
	}
}
```

{% endtab %}
{% endtabs %}

Example) Request Body

```javascript
{
  "client_id":"{ID issued by esignon}",
	"workflow_id": "{ID of completed document}"
}
```

Example) Response Body / Error

```javascript
{
    "header":{
        "response_code": "",
        "result_code": "{Result code}",
        "result_msg": "{'Message by code'}",
        "session_id": ""
    },
    "body":{}
}
```
