Skip to content

Instantly share code, notes, and snippets.

@wvpv
Created March 12, 2019 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wvpv/39d694fa48c80315d6ad7f472fe02c5e to your computer and use it in GitHub Desktop.
Save wvpv/39d694fa48c80315d6ad7f472fe02c5e to your computer and use it in GitHub Desktop.
Trigger multiple emails with REST
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