Customer Chat APISend an event

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 URLPOST https://app.staging.mlive.chat/v1/customer/action/send_event
Who can call itVisitors, with a customer access token (mlcc_).
WebSocket actionsend_event, the same call over an open socket

Request body

application/json

  • chat_idstringrequired

  • eventobjectrequired

  • event.typestringrequired

    One of message, file.
  • event.textstring

    Up to 4000 characters.
  • event.urlstring

    File only.
  • event.custom_idstring

    Up to 200 characters.

Response

200 · application/json

OK.

  • event_idstringrequired

Errors

  • default