Created
March 12, 2019 16:31
-
-
Save wvpv/39d694fa48c80315d6ad7f472fe02c5e to your computer and use it in GitHub Desktop.
Trigger multiple emails with REST
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POST /messaging/v1/messageDefinitionSends/key:YOURTSDEXTERNALKEY/sendBatch HTTP/1.1 | |
Host: YOURENDPOINT.rest.marketingcloudapis.com | |
Authorization: Bearer YOURAUTHTOKEN | |
Content-Type: application/json | |
cache-control: no-cache | |
[ | |
{ | |
"To": { | |
"Address": "neo@example.com", | |
"SubscriberKey": "1111", | |
"ContactAttributes": { | |
"SubscriberAttributes": { | |
"FirstName": "Neo" | |
} | |
} | |
} | |
}, | |
{ | |
"To": { | |
"Address": "morpheus@example.com", | |
"SubscriberKey": "2222", | |
"ContactAttributes": { | |
"SubscriberAttributes": { | |
"FirstName": "Morpheus" | |
} | |
} | |
} | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment