Website Chat

Send a message in a website chat

REQUIRED SCOPES <code>['website-chat:write']</code><br>Add a new message to an existing website chat identified by its token

post/messages/chats/{token}

Request

  • Base URL
    https://api.salesmessage.com/pub/v2.3
  • URL
    https://api.salesmessage.com/pub/v2.3/messages/chats/{token}
  • Auth
    none declared

Path parameters

tokenstring required

The token of the website chat

Request body

numberstring

The phone number of the sender

messagestring

The content of the message

namestring

The name of the sender

optedInboolean

Whether the sender has opted in

emailstring

The email of the sender

Response

Message sent successfully

messagestring

Example response

{
  "message": "Message sent successfully"
}

Changes

No recorded changes to this operation across all 3 revisions of this API.