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,
"code": "<string>",
"autopilotResponse": {
"type": "text",
"value": {
"error": true,
"content": "<string>"
},
"id": "<string>",
"mightSolveUserIssue": true,
"completelyAndFullyCoveredUserIssue": true,
"debugInfo": {
"actionCalls": [
{
"action": {
"name": "<string>",
"id": "<string>",
"openapi": {
"openapi_spec_id": "<string>",
"operation_spec": "<any>",
"operation_id": "<string>",
"operation_method": "<string>"
},
"metadata": "<any>",
"required_form_submission": true
},
"arguments": "<any>",
"result": "<any>"
}
],
"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": "<any>",
"rule_violation_reflections": [
{
"rule_name": "<string>",
"violation_description": "<string>"
}
]
},
"mode": {
"id": "<string>",
"name": "<string>",
"slug": "<string>"
},
"didExitMode": true
},
"uiResponse": {
"type": "ui",
"value": {
"type": "ui_component",
"request_response": "<any>",
"name": "<string>",
"content": "<string>"
},
"mightSolveUserIssue": true
},
"sessionIsHandedOff": true
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The response is of type object
.
Was this page helpful?
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,
"code": "<string>",
"autopilotResponse": {
"type": "text",
"value": {
"error": true,
"content": "<string>"
},
"id": "<string>",
"mightSolveUserIssue": true,
"completelyAndFullyCoveredUserIssue": true,
"debugInfo": {
"actionCalls": [
{
"action": {
"name": "<string>",
"id": "<string>",
"openapi": {
"openapi_spec_id": "<string>",
"operation_spec": "<any>",
"operation_id": "<string>",
"operation_method": "<string>"
},
"metadata": "<any>",
"required_form_submission": true
},
"arguments": "<any>",
"result": "<any>"
}
],
"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": "<any>",
"rule_violation_reflections": [
{
"rule_name": "<string>",
"violation_description": "<string>"
}
]
},
"mode": {
"id": "<string>",
"name": "<string>",
"slug": "<string>"
},
"didExitMode": true
},
"uiResponse": {
"type": "ui",
"value": {
"type": "ui_component",
"request_response": "<any>",
"name": "<string>",
"content": "<string>"
},
"mightSolveUserIssue": true
},
"sessionIsHandedOff": true
}