Skip to content

Send a message in a live chat

POST
/openapi/chat/sendmessage
curl --request POST \
--url https://open-api.replyco.com/openapi/chat/sendmessage \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json-patch+json' \
--data '{ "chatId": "2e7f4a96-8b1c-4d3e-a5f7-9c2b6e4d1a83", "text": "Yes, until it ships. Which address should we use?" }'

Sends a new message in an active live chat conversation.

Required fields:

  • ChatId
  • MessageText (or attachments)

Optional fields:

  • Attachments
  • IsInternal (for internal notes)

Sample request:

POST /chat/sendMessage
{
  "chatId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "messageText": "Hello! How can I help you today?",
  "isInternal": false
}

Message details including chat ID and content

object
chatId
string format: uuid
text
string
nullable
base64
string
nullable
fileName
string
nullable

Example

{
"chatId": "2e7f4a96-8b1c-4d3e-a5f7-9c2b6e4d1a83",
"text": "Yes, until it ships. Which address should we use?"
}

Message was sent successfully

Invalid request (e.g., missing required fields, chat is closed)

User is not authenticated or authorized

Chat with the specified ID was not found