Customer Chat APIStart a chat

Chats

Start a chat

Starts the visitor's chat with an optional first message and the pre-chat answers (a filled_form event).

One message per call; send more with send_event.

POST/v1/customer/action/start_chat

Specifics

Method URLPOST https://app.staging.mlive.chat/v1/customer/action/start_chat
Who can call itVisitors, with a customer access token (mlcc_).

Request body

application/json

  • chatobject

  • chat.accessobject

  • chat.access.group_idsarray of integer

  • chat.threadobject

  • chat.thread.eventsarray of object

Response

200 · application/json

OK.

  • chat_idstringrequired

  • thread_idstringrequired

  • event_idsarray of stringrequired

Errors

  • default