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

# Attachments

An attachment is a supporting file filed alongside a document, separate from its main file. Add, download, replace, rename and delete the attachments of a document, download all of them at once as a ZIP archive, or read an attachment of a draft. An attachment is addressed by the document identifier and its file hash.

## Endpoints

* `GET /attachments/draft/{id}/{hash}` — Retrieve an attachment from a draft
* `POST /attachments/{id}` — Add an attachment to a document
* `GET /attachments/{id}/zip` — Download all attachments of a document as a ZIP archive
* `GET /attachments/{id}/{hash}` — Retrieve a document attachment
* `PUT /attachments/{id}/{hash}` — Replace or rename a document attachment
* `DELETE /attachments/{id}/{hash}/{version}` — Delete an attachment from a document


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.