---
title: "Download document attachment"
url: "https://docs.signnow.com/docs/document/operations/download-document-attachment"
type: "endpoint"
section: "document"
slug: "document/operations/download-document-attachment"
method: "GET"
path: "/document/{document_id}/attachment/{attachment_id}/download"
operation_id: "download-document-attachment"
authorization: "bearer"
---

# Download document attachment

`GET /document/{document_id}/attachment/{attachment_id}/download`

This endpoint allows API users to download a file that a signer uploaded to an attachment field of the document.

**Notes**

* Get `attachment_id` from the `id` of an item in the `attachments` array returned by [Get document](/docs/document/operations/get-document).
* The file is returned as uploaded, with a `Content-Disposition: attachment` header that carries the original file name.

## Authorization

bearer

## Path Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `document_id` | string | Yes | Unique document id  |
| `attachment_id` | string | Yes | unique id of the attachment.  can be found in the response to `GET /document/{docuument_id}` request |

## Responses

### 200

The attached file. The content type matches the uploaded file, for example `image/jpeg` or `application/pdf`.

### 400

The attachment with this `attachment_id` is not found.

**Example** (`Attachment not found`)

```json
{
  "errors": [
    {
      "code": 66304,
      "message": "Attachment not found"
    }
  ]
}
```

## Code Examples

> Replace `$SIGNNOW_ACCESS_TOKEN` and any `{placeholder}` values before running.

### cURL

```bash
curl -X GET \
  "https://api.signnow.com/document/{document_id}/attachment/{attachment_id}/download" \
  -H "Authorization: Bearer $SIGNNOW_ACCESS_TOKEN"
```

---
*Full reference: https://docs.signnow.com/docs/document/operations/download-document-attachment*
