api/v1/customer/messages/create

POST

/api/v1/customer/messages/create

This API method will create a new messaging group between specific members. Any previously matched group with the same customer list, will be restored unless completely deleted.

Request Parameters

Parameter

Value / Type

Required

body

STRING

true

customer_list

STRING / ARRAY

true

platform

STRING

false

Sample Response

{
  "status": true,
  "message": "Successfully sent chat message",
  "group_id": "QD59AxOJm2MenXb14Pw7",
  "group_name": "John, Billy"
}
{
  "status": false,
  "errorCode": "INVALID_CUSTOMER_LIST",
  "message": "Please provide a valid customer list, either as a single value, comma separated or as an array"
}
{
  "status": false,
  "errorCode": "INVALID_CUSTOMERS",
  "message": "One or more of the members added are not part of your associations"
}
{
  "status": false,
  "message": "There was an issue sending this chat message"
}
{
  "status": false,
  "message": "There was an issue creating the chat group"
}