You can use this API to programmatically send messages between users and groups.
Send Message
POST - https://api.cometondemand.net/api/v2/sendMessage
Form Parameters
The UID of the user sending the message
The UID or GUID of the user/group receiving the message
If you are sending the message to a group, set this to 1
If isGroup is set to 0 (i.e. one-on-one message), then you can choose where you want to display the message: 0 -> Both sender and receiver, 1 -> Only receiver, 2 -> Only sender
Get Messages
POST - https://api.cometondemand.net/api/v2/getMessages
Form Parameters
Comma separated UIDs (if you want logs for only particular users)
Maximum number of results
Comma separated UIDs (if you want logs for conversations with only particular users)
Get Group Messages
POST - https://api.cometondemand.net/api/v2/getGroupMessages
Form Parameters
Comma separated GUIDs (if you want logs for only particular groups)
Maximum number of results
Get Unread Message Count (One-on-one)
POST - xhttps://api.cometondemand.net/api/v2/getUnreadMessageCounts
Form Parameters
UID of user whose unread messages count you require
Get Unread Message Count for Groups
POST - https://api.cometondemand.net/api/v2/getUnreadMessageCountForGroups
Get Call History
POST - https://api.cometondemand.net/api/v2/getCallHistory
Form Parameters
Maximum number of results
Values can be: avchat, audiochat, broadcast. If empty, it will return all results
Send Sticker
POST - https://api.cometondemand.net/api/v2/sendSticker
Form Parameters
The UID of the user sending the message
The UID or GUID of the user/group receiving the message
If you are sending the message to a group, set this to 1
Sticker Category (Refer below for sheet)
Sticker Key (Refer below for sheet)
Send File
POST - https://api.cakes.com
Form Parameters
The UID of the user sending the message
The UID or GUID of the user/group receiving the message
If you are sending the message to a group, set this to 1
Send Broadcast Message
POST - https://api.cometondemand.net/api/v2/sendBroadcastMessage
Form Parameters
The UID of the user sending the message