# Download a file of a support request

`GET /api/v1/support-requests/{supportRequest}/attachments/{attachment}/content`

Return a file sent with a message of the request, byte for byte.

This endpoint does not answer in JSON. The body is the file, sent as a download with the type and the name it was uploaded with. The id of the file is the id found in the attachments of a message.

This endpoint also answers QUERY, with the same parameters sent in the request body. [How QUERY works](https://my.monicahq.com/docs/api/query-method).

## Path parameters

- `supportRequest` (uuid, required): The id of the request. One belonging to another account answers 404.
- `attachment` (uuid, required): The id of the file. One sent with an internal note, one belonging to another request, or one whose content is no longer stored answers 404.

## Returns

The file. A request of another account answers 404.

## Rate limit

Sixty requests per minute, per user, shared by every key and device. Every answer carries the budget left in `X-RateLimit-Remaining`.

## Request

```sh
curl https://my.monicahq.com/api/v1/support-requests/7c1e4a92-5b3d-4f08-a6e1-93d2c8b05f17/attachments/b36f0d8e-47a1-4c92-95e8-1a2d7c63f0b4/content \
  -H "Authorization: Bearer $MONICA_TOKEN"
```

```javascript
const response = await fetch('https://my.monicahq.com/api/v1/support-requests/7c1e4a92-5b3d-4f08-a6e1-93d2c8b05f17/attachments/b36f0d8e-47a1-4c92-95e8-1a2d7c63f0b4/content', {
  headers: { Authorization: `Bearer ${token}` },
})
const data = await response.json()
```

```php
$response = Http::withToken($token)->get('https://my.monicahq.com/api/v1/support-requests/7c1e4a92-5b3d-4f08-a6e1-93d2c8b05f17/attachments/b36f0d8e-47a1-4c92-95e8-1a2d7c63f0b4/content');
```

## Response

`200`, with no body.
