curl --request POST \
--url https://api.open.cx/chat/sessions/{session_id}/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sender": "contact",
"message": {
"type": "text",
"text": "Hello!"
}
}
'{
"success": true,
"data": {
"success": true,
"code": "<string>",
"autopilotResponse": {
"type": "text",
"value": {
"error": true,
"content": "<string>"
},
"mightSolveUserIssue": true,
"completelyAndFullyCoveredUserIssue": true,
"id": "<string>",
"debugInfo": {
"actionCalls": [
{
"action": {
"name": "<string>",
"id": "<string>",
"openapi": {
"openapi_spec_id": "<string>",
"operation_spec": "<unknown>",
"operation_id": "<string>",
"operation_method": "<string>"
},
"metadata": "<unknown>",
"required_form_submission": true,
"is_handoff_like": true
},
"arguments": "<unknown>",
"result": "<unknown>"
}
],
"actionSearchQuery": "<string>",
"knowledge": [
{
"source": "<string>",
"source_type": "<string>",
"url": "<string>"
}
],
"knowledge_used": [
{
"content": "<string>",
"source": "<string>"
}
],
"work_instructions_scanned": [
{
"content": "<string>"
}
],
"client_context": {},
"additional_debug_data": {},
"whatsapp_template_request": "<unknown>",
"rule_violation_reflections": [
{
"rule_name": "<string>",
"violation_description": "<string>"
}
],
"tool_call_results_quick_reply_suggestions": [
{
"tool_name": "<string>",
"suggestions": [
"<string>"
]
}
]
},
"mode": {
"id": "<string>",
"name": "<string>",
"slug": "<string>"
},
"didExitMode": true
},
"uiResponse": {
"type": "ui",
"value": {
"type": "ui_component",
"name": "<string>",
"request_response": "<unknown>",
"content": "<string>"
},
"mightSolveUserIssue": true
},
"sessionIsHandedOff": true,
"resolveArgs": {
"summary": "<string>",
"sentiment": "angry"
},
"toolCallResultsQuickReplySuggestions": [
{
"tool_name": "<string>",
"suggestions": [
"<string>"
]
}
]
}
}curl --request POST \
--url https://api.open.cx/chat/sessions/{session_id}/send \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sender": "contact",
"message": {
"type": "text",
"text": "Hello!"
}
}
'{
"success": true,
"data": {
"success": true,
"code": "<string>",
"autopilotResponse": {
"type": "text",
"value": {
"error": true,
"content": "<string>"
},
"mightSolveUserIssue": true,
"completelyAndFullyCoveredUserIssue": true,
"id": "<string>",
"debugInfo": {
"actionCalls": [
{
"action": {
"name": "<string>",
"id": "<string>",
"openapi": {
"openapi_spec_id": "<string>",
"operation_spec": "<unknown>",
"operation_id": "<string>",
"operation_method": "<string>"
},
"metadata": "<unknown>",
"required_form_submission": true,
"is_handoff_like": true
},
"arguments": "<unknown>",
"result": "<unknown>"
}
],
"actionSearchQuery": "<string>",
"knowledge": [
{
"source": "<string>",
"source_type": "<string>",
"url": "<string>"
}
],
"knowledge_used": [
{
"content": "<string>",
"source": "<string>"
}
],
"work_instructions_scanned": [
{
"content": "<string>"
}
],
"client_context": {},
"additional_debug_data": {},
"whatsapp_template_request": "<unknown>",
"rule_violation_reflections": [
{
"rule_name": "<string>",
"violation_description": "<string>"
}
],
"tool_call_results_quick_reply_suggestions": [
{
"tool_name": "<string>",
"suggestions": [
"<string>"
]
}
]
},
"mode": {
"id": "<string>",
"name": "<string>",
"slug": "<string>"
},
"didExitMode": true
},
"uiResponse": {
"type": "ui",
"value": {
"type": "ui_component",
"name": "<string>",
"request_response": "<unknown>",
"content": "<string>"
},
"mightSolveUserIssue": true
},
"sessionIsHandedOff": true,
"resolveArgs": {
"summary": "<string>",
"sentiment": "angry"
},
"toolCallResultsQuickReplySuggestions": [
{
"tool_name": "<string>",
"suggestions": [
"<string>"
]
}
]
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
contact, agent Show child attributes
Updated contact info
Show child attributes
Agent info. if id is provided, the name and avatar_url are ignored.
Show child attributes
If true and sender is agent and session is assigned to AI, the session will be reassigned to the agent.
Was this page helpful?