v4

latestOpenAPI 3.0.0raw.githubusercontent.com2026-04-06211660.4 KB
Files

Store a file without creating a message

post/api/v1/files/store

Response

Stored attachment (orphan)

idstring required
messageIdstring required
pluginTypestring required
filenamestring required
mimeTypestring required
sizenumber required
storageKeystring required
createdAtstring required

Example response

{
  "id": "clxyz789",
  "messageId": "clxyz123",
  "pluginType": "file",
  "filename": "report.pdf",
  "mimeType": "application/pdf",
  "size": 1024,
  "storageKey": "uploads/clxyz123/report.pdf",
  "createdAt": "2025-01-01T00:00:00.000Z"
}