Chat
Send a query
Send a message to an API channel and receive JSON or an SSE stream.
/v2/chatAuthenticate with the channel API key and send query text or uploaded attachments. The channel determines which agent receives the message.
Conversation and retry behavior
To continue a conversation, include the returned data.metadata.conversation_id in your next request.
external_message_id makes retries safe: resend the same ID and body to retrieve the original result. Only stream may change. The channel chooses the agent; no agent_id is needed. A platform API key cannot authenticate this request.
Streaming explains events and reconnection. The integration guide covers contact fields, file uploads, per-request instructions and knowledge selection.
Authentication
AuthorizationstringheaderrequiredAuthenticate with a Bearer token in this format: Bearer <token>
Header Parameters
last-event-idstring | nullRequest bodyrequired
Additional properties
falsequerystringattachmentsobject[]5Show child attributes
blob_idintegerrequired0Additional properties
falseconversation_idstring | nulluuidexternal_message_idstring | null2551contactobject | nullShow child attributes
identifierstring | null255namestring | null255first_namestring | null255last_namestring | null255emailstring | nullemailphone_numberstring | null64localestring | null32custom_attributesobjectAdditional properties
Additional properties
falsesystem_promptstring | nullknowledge_base_idsstring[] | null100streambooleanfalseResponse
dataobjectrequiredShow child attributes
messageobject | nullrequiredShow child attributes
idstringrequireduuidroleenum<string>requireduserassistantoperatorpartsobject[]requiredanyOf
Show child attributes
idstringrequireduuidtypeenum<string>texttextstringrequiredShow child attributes
idstringrequireduuidclient_idstringpositionintegerrequiredtypeenum<string>requiredattachmentvoiceupdated_atstringrequireddate-timecontent_attributesobjectrequiredShow child attributes
schema_versionenum<integer>1kindenum<string>requiredimagevoicefilefilenamestringrequiredstatusenum<string>requiredpendingprocessingreadyfailedrejectedcontent_typestring | nullbyte_sizeinteger | nullwidthinteger | nullheightinteger | nullduration_secondsnumber | nullerror_codestring | nulltranscriptionobject | nulldelivery_statusstring | nulldownload_urlstring | nullexpires_ininteger | nullAdditional properties
falsemetadataobjectrequiredShow child attributes
conversation_statusstringrequiredbot_activebooleanrequiredhandoff_statusenum<string>requirednot_requestedpendingoperator_ownedconversation_idstringrequireduuiduser_message_idstringrequireduuidexternal_message_idstringrequiredcontact_idstringrequireduuidfinish_reasonenum<string>requiredcompletedsuppressedfailedcancelledusageobjectShow child attributes
creditsinteger0