Skip to main content
POST
/
api
/
v1
/
files
/
store
Store a file without creating a message
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"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Stored attachment (orphan)

id
string
required
Example:

"clxyz789"

messageId
string
required
Example:

"clxyz123"

pluginType
string
required
Example:

"file"

filename
string
required
Example:

"report.pdf"

mimeType
string
required
Example:

"application/pdf"

size
number
required
Example:

1024

storageKey
string
required
Example:

"uploads/clxyz123/report.pdf"

createdAt
string
required
Example:

"2025-01-01T00:00:00.000Z"