Add a message (postMessage)
POST {{baseUrl}}/channels/:providerChannelId/messages
This endpoint is used to send a new message to a conversation. It’s called when a user types a message in the chat window and sends it.
Unlike the other endpoints, requests for this one will be sent as multipart/form-data
, since messages may include file attachments.
Request Body
[{"name"=>"message", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"senderId", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"conversationId", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"recipientIds", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"files", "value"=>"<string>", "datatype"=>"string"}]
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"success":true,"data":{"id":"incidid"}}