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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:true,&quot;data&quot;:{&quot;id&quot;:&quot;incidid&quot;}}