Skip to main content
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