cURL
curl --request POST \ --url https://api.example.com/api/v1/files/store \ --header 'Authorization: Bearer <token>'
{ "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" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Stored attachment (orphan)
"clxyz789"
"clxyz123"
"file"
"report.pdf"
"application/pdf"
1024
"uploads/clxyz123/report.pdf"
"2025-01-01T00:00:00.000Z"