Attachments
Files attached to a workspace or a document, stored by their SHA-256 hash. Upload the bytes first, then record the attachment.
View as MarkdownEndpoints
- POSTAdd an attachment
/v1/attachments - POSTGet an upload URL for a file
/v1/attachments/uploads - GETGet an attachment
/v1/attachments/{id} - DELDelete an attachment
/v1/attachments/{id} - GETGet a download URL for an attachment
/v1/attachments/{id}/download-url - POSTPermanently delete an attachment
/v1/attachments/{id}/purge - POSTRestore an attachment
/v1/attachments/{id}/restore - GETList attachments
/v1/workspaces/{workspaceId}/attachments
The Attachment object
{
"id": "01JCQ3V5MZ8G4ZK2X7T9R6N1PB",
"workspaceId": "01JCQ3TZ0WJ8K4M2X7T9R6N1PA",
"documentId": null,
"filename": "string",
"contentType": "string",
"size": 0,
"sha256": "string",
"createdAt": "2026-11-12T09:30:00.000Z",
"updatedAt": "2026-11-12T09:30:00.000Z",
"deletedAt": null,
"createdBy": null,
"updatedBy": null
}