---
title: "Download an operator attachment"
description: "Returns an attachment's stored bytes: anyone in the account once a message used it, and only its uploader while it is a draft."
canonical: "https://www.cool.computer/docs/api-reference/operator/download-an-operator-attachment"
---
# Download an operator attachment

> Returns an attachment's stored bytes: anyone in the account once a message used it, and only its uploader while it is a draft.

```http
GET https://api.cool.computer/api/operator/attachments/{id}/content
```

Returns an attachment's stored bytes: anyone in the account once a message used it, and only its uploader while it is a draft. Images and videos are served inline and answer Range requests; text files download. The ETag is the bytes' SHA-256. The response is Cache-Control: private, no-cache, so a browser revalidates every use with If-None-Match and a matching ETag answers 304 while the caller may still read the attachment; it carries Content-Security-Policy: sandbox and X-Content-Type-Options: nosniff. Callers: the account owner with a browser session, user API key, user access token, claimed agent access token, or MCP token; organization API keys are refused.

## Authorization

- A Cool Computers API key, user access token, or claimed agent access token in the Authorization header. Follow https://www.cool.computer/auth.md for agent registration and https://www.cool.computer/authentication.md for direct user credentials.

## Parameters

- `id` (path, string, at least 1 characters, required): Operator attachment identifier.
- `Range` (header, string): A byte range, as a video player asks for one.

## Responses

- `200`: The attachment's bytes, with its media type.
  - `*/*` (string, binary)
- `206`: The requested byte range.
  - `*/*` (string, binary)
- `304`: The cached copy named by If-None-Match is current.
- `401`: Unauthorized.
- `403`: Forbidden.
- `404`: Not Found.
- `429`: Too Many Requests. If the problem code is api_request_rate_exceeded, wait for Retry-After seconds; other problem codes describe a separate limit.
- `500`: Internal Server Error.
- `default`: A machine-readable API error with a stable code and recovery instruction.

An error is an `application/problem+json` document with a stable `code`; [API errors](/docs/api-reference/errors) says how to handle one.

## Example

```sh
curl "https://api.cool.computer/api/operator/attachments/$PARAM_ID/content" \
  -H "authorization: Bearer $TOKEN"
```
