POST /push/v1/messageList/{messageId}/send

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

Note

Overview 

Sends a message to the specified mobile devices of a push-enabled app.

URL Parameters 

NameTypeDescription
messageIdstringRequiredThe API key of the message definition (configured in the MobilePush user interface)

JSON Parameters 

NameTypeDescription
inclusionListIdsarrayRequiredAn array of one or more contact list ids to include in send
exclusionListIdsarrayAn array of one or more contact list ids to exclude in send
InclusionDataExtensionIdsarrayAn array of one or more data extension External Keys to include in send
ExclusionDataExtensionIdsarrayAn array of one or more data extension External Keys to exclude in send
overridebooleanFlag to indicate that the contact is to receive the messageText as provided instead of the message's original text
messageTextstringThe text value to be used in place of the message's original text. This field is required when override is true.
titlestringThe title to be used in place of the message's original title.
subtitlestringThe subtitle to be used in place of the message's original subtitle.
mutable-contentbooleanIf true, rich push functionality is enabled for the message.
sendTimedateDate formatted yyyy-MM-dd HH:mm specifying a time in the future to send the message
blackoutWindowstringThe blockoutWindow definition used to delay message sending outside a given windowStart and windowEnd and utcOffset
soundstringSound filename to be played on the device
badgestringFor iOS SDK version 4.9.5 and newer: Overrides the value on the push message definition. Badge count displays this number in a badge on the app and increments this number by one for each new unread message. For older iOS SDK versions: Overrides the value on the push message definition. Badge count does not increment.
openDirectstringValue used as the open direct destination
customPayloadstringCustom definition in escaped JSON
customKeysarrayAn array of key/value pairs used as custom keys to be sent with the message request body

Usage 

Example Request

Host: https://YOUR_SUBDOMAIN.rest.marketingcloudapis.com
POST /push/v1/messageList/OEl8ODow/send
Content-Type: application/json
Authorization: Bearer YOUR_ACCESS_TOKEN

{
    "InclusionListIds": [
        "UTZ6QTh4MVRmMC1XZlN5QUtnS3hWdzo2NTow"
    ],
    "ExclusionListIds": [
        "VWRoY1IzcWh2RXVvc3FDYTRfcGtvQTo2NTow"
    ],
    "Override": true,
    "MessageText": "New information available!",
    "title": "Boost your winnings!",
    "subtitle": "Check your app to see what else is in store.",
    "mutable-content": 1,
    "SendTime": "2012-10-31 09:00",
    "Sound": "MyFile.caf",
    "Badge": "+1",
    "OpenDirect": "OD01",
    "CustomKeys": {
        "keyA": "keyA_value",
        "keyB": "keyB_value"
    },
    "CustomPayload": { "customA": "customA_value" }
}

Example Response

HTTP/1.1 200
{
    "tokenId": "TokenIDValue"
}