Skip to main content
POST
Add a file you attached in the AI Assistant to go with the answer to a reply

Authorizations

X-API-Key
string
header
required

Path Parameters

thread_id
string<uuid>
required
message_id
string<uuid>
required

Body

application/json

A file attached to an AI Assistant message, to go with the answer to a reply.

chat_attachment_id
string<uuid>
required

The file, by its id from POST /chat-attachments/. Its bytes are copied as they were uploaded; the attachment itself is left as it is.

Response

Successful Response

A file waiting to go with the answer to one of the contact's replies.

content_type
string
required
created_at
string<date-time>
required
filename
string
required
id
string<uuid>
required
message_id
string<uuid>
required

The contact's reply whose answer the file goes with.

size_bytes
integer
required