Agent Chat APIGet a customer

Customers

Get a customer

One customer: name, email, session fields, their chats and recent pages.

POST/v1/agent/action/get_customer

Specifics

Method URLPOST https://app.staging.mlive.chat/v1/agent/action/get_customer
Who can call itBots, with a bot token (mlcb_).

Request body

application/json

  • idstringrequired

    The customer ID.

Response

200 · application/json

OK.

  • idstringrequired

  • typestringrequired

    One of customer.
  • namestring

  • emailstring

  • created_atstringrequired

  • session_fieldsarray of objectrequired

  • chat_idsarray of stringrequired

  • statisticsobjectrequired

  • visitobject

Errors

  • default