Grist Octri Preview
GET/docs/{docId}/attachments/{attachmentId}/download

Download an attachment

Downloads the contents of a specific attachment from a document. Provide the document UUID and the attachment's integer ID to identify the file. The response uses a suitable Content-Type for the attachment contents.

2 parameters
docIdstringrequired
The UUID of the document containing the attachment.
attachmentIdnumberrequired
The integer ID of the attachment to download.

1 status code
200Returns the attachment contents with a suitable `Content-Type`.

Error handling

The docId path parameter must be a UUID, and the attachmentId path parameter must be an integer ID.