post https://{appid}.api-{region}.cometchat.io/v3/messages
Sends Message on behalf of a user.
For more details please visit here
Request sample:
POST /messages HTTP/1.1
Content-type: application/json
Accept: application/json
{
"receiver": "string",
"receiverType": "string",
"category": "string",
"type": "string",
"data": {
"text": "string",
"metadata":{
"any key": "value pair",
},
"customData": {
"any key": "value pair",
},
"attachments": [{
"url": "string",
"name": "string",
"mimeType": "string"
, "extension": "string"
, "size": "string"
}]
},
"multipleReceivers": {
"uids": ["array of string UIDs"],
"guids": ["array of string GUIDs"]
},
"unset": ["array of strings"]
}