Api session event editor chat send message
API Endpoint to Send Message.
API Endpoint name is Api session event editor chat send message
| Name | Importance | Type | Description | Values |
|---|---|---|---|---|
| 0 | REQUIRED | (Enumeration) | Channel | AI_ASSISTANT or DOMAIN |
| 1 | REQUIRED | (String) | String |
Response Codes
| Response Code: | Description |
|---|---|
| 204 | No Content |
| 300-600 | Codes Overview |
Example POST
Curl Example POST:
curl 'https://engine.tygron.com/api/session/event/editorchat/send_message/' -H 'Content-Type: application/json' -H 'Authorization: Bearer API_TOKEN' -d '[ "DOMAIN", "Text" ]'JavaScript Example POST:
var options = {
method: "POST",
headers: { "Content-Type": "application/json", "Authorization": "Bearer API_TOKEN" },
body: '[ "DOMAIN", "Text" ]'
};
fetch("https://engine.tygron.com/api/session/event/editorchat/send_message/", options)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));