Skip to main content
Version: 5.7.0

SysSendMessage

tip

This method is available in Cloud Code scripts only.

Sends a message on behalf of the system (i.e. app) to the specified users.

ServiceOperation
messagingSYS_SEND_MESSAGE

Method Parameters

ParameterDescription
toProfileIdsThe array of recipients
contentJsonThe json content object to send in the message
fromJsonWho the message is from. Should contain at least "name" field, and potential "pic" field as well.

Usage

http://localhost:3000
// Cloud Code only. To view example, switch to the Cloud Code tab
JSON Response
{
"status": 200,
"data": {
}
}
Common Error Code

Status Codes

CodeNameDescription
40601FEATURE_NOT_ENABLEDMessaging feature is not enabled for app.