> For the complete documentation index, see [llms.txt](https://developers.docstudio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developers.docstudio.com/api-documentation/api-methods/download-envelope-documents-archive.md).

# Download Envelope Documents Archive

### Method

<table><thead><tr><th width="321">Method</th><th>GET</th></tr></thead><tbody><tr><td>URL</td><td><code>/api/v1/envelope/{envelopeUuid}/zip</code></td></tr><tr><td>Authorization</td><td>Bearer {token}</td></tr><tr><td>Content-Type</td><td>application/json</td></tr><tr><td>Mailbox UUID header</td><td><code>{uuid}</code></td></tr></tbody></table>

Use this endpoint to download the full envelope archive or the archive of one document. The response body is a ZIP file.

### How it works

Request the full archive when you need all envelope files. Add query parameters when you need one document only or want to exclude generated files.

Archive contents depend on the document state. Completed documents return more files than incomplete ones.

### Path parameters

* `envelopeUuid` — envelope UUID

### Query parameters

* `documentId` — download the archive for one document only
* `excludeFiles` — exclude generated files from the ZIP
* `zipStructureName` — use a pre-saved ZIP structure from the template

Use these `excludeFiles` mask values:

* `c` — certificates
* `p` — printable versions
* `a` — audit trail

{% hint style="info" %}
Combine `excludeFiles` values in one mask. For example, `cp` excludes certificates and printable versions.
{% endhint %}

### Request examples

#### Download the full envelope archive

```
/api/v1/envelope/89499ba2-287d-404c-87b0-342dc5b01b6a/zip
```

#### Download one document archive

```
/api/v1/envelope/89499ba2-287d-404c-87b0-342dc5b01b6a/zip?documentId=4a61f258-fd9d-406c-b47e-81c90d4e5c47
```

#### Download an archive without certificates and printable versions

```
/api/v1/envelope/89499ba2-287d-404c-87b0-342dc5b01b6a/zip?excludeFiles=cp
```

### ZIP content by document state

1. If the document is incomplete, the ZIP usually contains only the audit trail.
2. If the document is complete, the ZIP contains original documents, printable versions, and processing or signing certificates.
3. If the document is complete and already signed, the ZIP also contains the produced signatures.

{% hint style="info" %}
ZIP content changes with the processing flow step and document state. The same request can return different files at different stages of envelope processing.
{% endhint %}

### Related topics

* [Check Envelope Status](https://support.docstudio.com/docstudio-docs/docstudio-for-developers/api-documentation/api-methods/check-envelope-status)
* [Send Envelope](https://support.docstudio.com/docstudio-docs/docstudio-for-developers/api-documentation/envelope/send-envelope)
* [Get Document(s) For Sign](https://support.docstudio.com/docstudio-docs/docstudio-for-developers/api-documentation/api-methods/get-document-s-for-sign)
