Skip to content

sendAIMessage

POST
/api/v1/ai/conversations/{conversationId}/messages
curl --request POST \
--url https://example.com/api/v1/ai/conversations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/messages \
--header 'Content-Type: application/json' \
--data '{ "attachments": [ { "execution_id": "example", "flow_id": "example", "kind": "flow", "namespace": "example", "path": "example" } ], "text": "example" }'
conversationId
required
string format: uuid
Media typeapplication/json
object
attachments
Array<object>
<= 5 items
object
execution_id

Execution UUID.

string
flow_id

Flow ID of a flow.

string
kind
required
string
Allowed values: flow execution file
namespace

Namespace of a flow or a file.

string
path

File path of a file.

string
key
additional properties
any
text
required
string
>= 1 characters <= 20000 characters
key
additional properties
any

Events of the turn: text, tool_call, tool_result, pending_action, error and done.

Media typetext/event-stream