Skip to content
LydieDevelopers
Menu

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 Markdown

Endpoints

The Attachment object

Example
{
  "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
}