Skip to main content
Version: 6.1.0

SendRawToSegments

This operation sends a raw message to targetted segments.

Results​

NameDescription
estimatedTargetsEstimate number of targeted users
ServiceOperation
pushNotificationSEND_RAW_TO_SEGMENTS

Method Parameters​

ParameterDescription
segmentCodeListList of target segment codes. Omit to send to all users.
segmentIdListDeprecated: list of target segment ids. Use segmentCodeList instead.
fcmContentFCM dependent message content.
iosContentIOS dependent message content.
facebookContentFacebook dependent message content.
warning

segmentIdList is deprecated. Use segmentCodeList instead. Segment ids are assigned separately in each environment, so the same id can refer to a different segment after an app is copied or promoted, and new apps reject segment ids in cloud code.

Usage​

http://localhost:3000
// S2S call: to view example, switch to the Cloud Code or Raw tab.
JSON Response
{
"packetId": 1,
"messageResponses": [
{
"data": {
"estimatedTargets": 1234
},
"status": 200
}
]
}