> You are reading the Docusign Developer Documentation. For clean Markdown of any page, append .md to the page URL.
>
> Documentation indexes by section:
> - APIs and SDKs: https://docusign.docs.buildwithfern.com/docs/llms.txt
> - Platform 101: https://docusign.docs.buildwithfern.com/platform/llms.txt
> - Extension Apps: https://docusign.docs.buildwithfern.com/extension-apps/llms.txt
> - Docusign CLI: https://docusign.docs.buildwithfern.com/docusign-cli/llms.txt
>
> Authentication (OAuth, JWT Grant, M2M): https://docusign.docs.buildwithfern.com/platform/auth
> Webhooks and Connect: https://docusign.docs.buildwithfern.com/platform/webhooks
>
> OpenAPI specifications: https://docusign.docs.buildwithfern.com/openapi.json
> MCP server: https://docusign.docs.buildwithfern.com/_mcp/server

# EnvelopeDocuments Resource

The EnvelopeDocuments resource provides methods
that manage documents in an envelope.
You can:

* add one or more documents to the envelope
* retrieve one or more documents from the envelope
* delete documents from the envelope

All of the methods in this resource
operate on on an existing envelope.
Before you can add documents
to an envelope,
you must first create it
with the [Envelopes: create](/docs/esign-rest-api/reference/envelopes/envelopes/create) method.

## Methods supported

| Method                                                                                              | Description                                                                                                                                           |
| --------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| [delete](/docs/esign-rest-api/reference/envelopes/envelopedocuments/delete)                         | DEL `/restapi/v2.1/accounts/{accountId}/envelopes/{envelopeId}/documents` Deletes documents from a draft envelope.                                    |
| [get](/docs/esign-rest-api/reference/envelopes/envelopedocuments/get)                               | GET `/restapi/v2.1/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}` Retrieves a single document or all documents from an envelope. |
| [getArchiveDocument](/docs/esign-rest-api/reference/envelopes/envelopedocuments/getarchivedocument) | GET `/restapi/v2.1/accounts/{accountId}/archivedocuments/{documentId}` Return generated html document from archive.                                   |
| [list](/docs/esign-rest-api/reference/envelopes/envelopedocuments/list)                             | GET `/restapi/v2.1/accounts/{accountId}/envelopes/{envelopeId}/documents` Gets a list of documents in an envelope.                                    |
| [update](/docs/esign-rest-api/reference/envelopes/envelopedocuments/update)                         | PUT `/restapi/v2.1/accounts/{accountId}/envelopes/{envelopeId}/documents/{documentId}` Adds or replaces a document in an existing envelope.           |
| [updateList](/docs/esign-rest-api/reference/envelopes/envelopedocuments/updatelist)                 | PUT `/restapi/v2.1/accounts/{accountId}/envelopes/{envelopeId}/documents` Adds one or more documents to an existing envelope.                         |

## EnvelopeDocuments properties

| Property            | Type   | Description                                                 |
| ------------------- | ------ | ----------------------------------------------------------- |
| `envelopeDocuments` | array  | An array of document objects.                               |
| `envelopeId`        | string | The envelope ID of the envelope status that failed to post. |