Events
Send an event
A message or a file (from upload_file) in the visitor's chat.
event.custom_id makes a retry safe: the same custom_id returns the first event_id.
POST/v1/customer/action/send_event
Specifics
| Method URL | POST https://app.staging.mlive.chat/v1/customer/action/send_event |
|---|---|
| Who can call it | Visitors, with a customer access token (mlcc_). |
| WebSocket action | send_event, the same call over an open socket |
Request body
application/json
chat_idstringrequiredeventobjectrequiredevent.typestringrequiredOne ofmessage,file.event.textstringUp to 4000 characters.event.urlstringFile only.event.custom_idstringUp to 200 characters.
Response
200 · application/json
OK.
event_idstringrequired
Errors
- default
Nothing found. Try a method name, such as send event.