Ana içeriğe geç

Upload file attachments to a conversation

POST 

/api/conversations/:conversationId/attachments

Uploads one or more files against a conversation as PENDING attachments (not yet bound to a message). Send the returned attachment ids as attachment_ids in a subsequent sendMessage call to bind them to a message in the SAME conversation. Use either the file field for a single upload or the files[] field for several.

Each file is validated by its DETECTED mime type (a renamed binary cannot pose as an allowed type) and per-file size; the allowlist, size cap, and max count come from the tenant's effective attachment policy. Authorized through the conversation's reply ability — a cross-tenant conversation is invisible (404).

Request​

Responses​

The stored (pending) attachments.