Contacts
Sessions
AI Phone Agents
AI Email
AI WhatsApp
AI Outbound Sequencing
AI Training
Customer Insights
Groups (teams)
Webhooks
Sessions
Send a message
POST
/
chat
/
sessions
/
{session_id}
/
send
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
},
"uiResponse": {
"type": "ui",
"value": {
"type": "ui_component",
"request_response": "<any>",
"name": "<string>",
"content": "<string>"
},
"mightSolveUserIssue": true
},
"sessionIsHandedOff": true
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
application/json
Response
201
application/json
The response is of type object
.
The response is of type object
.
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
},
"uiResponse": {
"type": "ui",
"value": {
"type": "ui_component",
"request_response": "<any>",
"name": "<string>",
"content": "<string>"
},
"mightSolveUserIssue": true
},
"sessionIsHandedOff": true
}
Assistant
Responses are generated using AI and may contain mistakes.