---
title: "Download Attachment"
source_url: https://docs.rapyd.net/en/download-attachment.html
lang: en
---

# Download Attachment

Returns a temporary signed link for one attachment of a ticket. Request the link when you need the file, because the link expires. Download the file from `url` without any Rapyd authentication.

### Parameters

### Request Path Parameters

- - file_id (string, required)
  - The ID of the attachment. Get it from the `attachments` list of [Get Ticket](https://docs.rapyd.net/en/get-ticket.md "Get Ticket").
- - ticket_id (string, required)
  - The ID of the ticket.

### Request Header Parameters

- - access_key (string, required)
  - Unique access key provided by Rapyd for each authorized user.

    See [Developers](https://docs.rapyd.net/en/developers.md "Developers").
- - Content-Type (string, required)
  - Indicates that the data appears in JSON format. Set to **application/json**.
- - salt (string, required)
  - Random string. Recommended length: 8-16 characters.
- - signature (string, required)
  - Signature calculated for each request individually.

    See [Request Signatures](https://docs.rapyd.net/en/request-signatures.md "Request Signatures").
- - timestamp (string, required)
  - Timestamp for the request, in [Unix time](https://docs.rapyd.net/en/glossary.md#UUID-945d98cf-adae-e1cf-2606-c7fae8b4a7e1_unix_time "Unix time") (seconds).

### 200 OK Response

- - extension (string)
  - The file extension, without a dot.
- - id (string)
  - The ID of the attachment.
- - name (string)
  - The name of the file.
- - url (string)
  - A short-lived signed link to the file. Download the file from this address without Rapyd authentication.

- /v1/support/tickets/:ticket_id/attachments/:file_id/download

- Download Attachment
- ```curl
  curl -X get 'https://sandboxapi.rapyd.net/v1/support/tickets/49230885151/attachments/223895039640/download' \
  -H 'access_key: your-access-key-here' \
  -H 'salt: your-random-string-here' \
  -H 'signature: your-calculated-signature-here' \
  -H 'timestamp: your-unix-timestamp-here'
  ```
- ```json
  {
      "status": {
          "error_code": "",
          "status": "SUCCESS",
          "message": "",
          "response_code": "",
          "operation_id": "6f1c1d0e-2b7a-4f0e-9d0a-3c1d8e2b7a11"
      },
      "data": {
          "id": "223895039640",
          "name": "Screenshot 2026-10-08",
          "extension": "png",
          "url": "https://<hubspot-files-host>/hubfs/.../Screenshot.png?Expires=...&Signature=..."
      }
  }
  ```
