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

Get attachment metadata

Retrieves metadata for a specific attachment in a document. Provide the document UUID and the attachment's integer ID to identify the attachment. Use the returned filename, file size, and upload time to inspect its metadata.

2 parameters
docIdstringrequired
The UUID of the document containing the attachment.
attachmentIdnumberrequired
The integer ID of the attachment whose metadata to retrieve.

1 status code
200Returns attachment metadata, including the filename, file size, and upload time.
fileNamestringoptional
fileSizenumberoptional
timeUploadedstringoptional

Error handling

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