> ## Documentation Index
> Fetch the complete documentation index at: https://docs.iinkedsign.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Download

## Request

<Tabs>
  <Tab title="Executed">
    Download the **executed** version of a document within a package. This provides access to the completed document that has been fully signed and is ready for record-keeping or distribution.

    ```http Request theme={null}
    GET /packages/{packageId}/documents/{documentId}/pdf/executed/download
    ```
  </Tab>

  <Tab title="CAC">
    Download the **CAC** (Compliance Audit Certificate) for a package.

    ```http Request theme={null}
    GET /packages/{packageId}/documents/{documentId}/pdf/cac/download
    ```
  </Tab>

  <Tab title="Current revision">
    Download the **current** revision of a document within a package. This allows you to retrieve the most up-to-date version of the document, which may include any recent changes or signatures.

    ```http Request theme={null}
    GET /packages/{packageId}/documents/{documentId}/pdf/current/download
    ```
  </Tab>

  <Tab title="Specific revision">
    Use the `revisionId` to download a specific revision of a document within a package. This is useful when you need to access a particular version of the document, such as one before or after certain changes were made.

    ```http Request theme={null}
    GET /packages/{packageId}/documents/{documentId}/pdf/{revisionId}/download
    ```
  </Tab>
</Tabs>

### Parameters

<ParamField path="packageId" type="string" required>
  Unique identifier for the package to download a document from.
</ParamField>

<ParamField path="documentId" type="string" required>
  Unique identifier for the document within the package to download.
</ParamField>

<ParamField path="version" type="string" required>
  Specifies the version of the document to download. Accepted values are:

  | Value          | Description                                                                                |
  | -------------- | ------------------------------------------------------------------------------------------ |
  | executed       | The fully signed and completed version of the document.                                    |
  | cac            | The Compliance Audit Certificate for the package.                                          |
  | current        | The most up-to-date revision of the document.                                              |
  | `{revisionId}` | A specific unique revision identifier to download that particular version of the document. |
</ParamField>

<Tip>
  See the [MasterFile download API](/v4/api/masterfile/download) for more information on downloading MasterFiles.
</Tip>

## Response

Returns a PDF file of the requested document version.

<ResponseExample>
  ```http theme={null}
  HTTP/1.1 200 OK
  Content-Type: application/pdf
  Content-Disposition: attachment; name="example.pdf";filename*=utf-8''example.pdf

  <PDF-BINARY-DATA>
  ```
</ResponseExample>
