Create Push Message

POST https://{{et_subdomain}}.rest.marketingcloudapis.com/push/v1/message

https://developer.salesforce.com/docs/atlas.en-us.noversion.mc-apis.meta/mc-apis/createPushMessage.htm

Creates a push message template for sending to a list of subscribers or an audience inclusion list or data extension. You can personalize each message for each subscriber using personalization strings or AMPscript lookups from a data extension within a single push message definition. You can also pass the text of the message to override the message contents specified in the definition for API-driven personalization.

Request Body

{"messageType"=>1, "contentType"=>1, "name"=>"Message created by API", "application"=>{"id"=>"702cda13-72e7-48b1-a99b-9b9028f7a695", "name"=>"API App"}, "alert"=>"Alert message created by API", "badge"=>"+1", "content-available"=>1, "sendInitiator"=>1, "startDate"=>"2014-04-30T14:50:00Z", "status"=>2}

RESPONSES

status: Created

{"links":{},"id":"MTI2OjExNDow","alert":"Alert message created by API","badge":"+1","startDateUtc":"2014-04-30T14:50:00.000Z","startDate":"2014-04-30T08:50:00","messageType":1,"contentType":1,"messageObjectId":"590c9c91-cc12-41f8-9076-d642285820f6","application":{"links":{},"id":"702cda13-72e7-48b1-a99b-9b9028f7a695","key":"RTlvc2NPZHlzVWlwbTV1UUtQZW1sUToxMTc6MA","name":"API App","description":"","createdDate":"2019-07-10T15:37:00Z","modifiedDate":"2019-07-10T15:42:52.58Z","configuration":{"customSound":false,"openDirect":false,"customKeys":false,"payloadEditor":false,"messageCategories":false}},"name":"Message created by API","tzPastSendAction":0,"sendInitiator":1,"status":2,"contentAvailable":1,"activeTimes":[],"createdDate":"2019-07-10T09:50:00","lastUpdated":"2019-07-10T09:50:00"}