Email - Send a Message to Multiple Recipients
POST https://{{et_subdomain}}.rest.marketingcloudapis.com/messaging/v1/email/messages
Sends a message to multiple recipients using a send definition. You can provide a messageKey in the request; otherwise, the messageKey is automatically generated in the response.
Request Body
{"definitionKey"=>"tapi-ena-appointment", "recipients"=>[{"contactKey"=>"aaron.cates@salesforce.com", "to"=>"aaron.cates@salesforce.com", "messageKey"=>"{{$guid}}", "attributes"=>{"FirstName"=>"Aaron", "Doctor"=>"Smith"}}, {"contactKey"=>"aaron.cates@salesforce.com", "to"=>"aaron.cates@salesforce.com", "messageKey"=>"{{$guid}}", "attributes"=>{"FirstName"=>"Billy", "Doctor"=>"McNew"}}], "attributes"=>{"GlobalAttribute1"=>"value_a", "GlobalAttribute2"=>"value_b"}}