text-widget-public

Send Widget Message

Send a visitor message and stream the AI response via SSE.

SSE events: status, token, tool_start, tool_end, done, error, heartbeat, handoff_started, sub_agent_start, sub_agent_status, sub_agent_end.

post/api/v1/public/text-widget/sessions/{session_id}/message

Path parameters

session_idstring uuid required

Headers

X-Session-Tokenstring required

Request body

contentstring nullable
attachmentsobject[] nullable
selection_contextobject nullable

Response

Successful Response

{"stackTrail":"paths:/api/v1/public/text-widget/sessions/{session_id}/message:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.