Send Email using Templates

POST https://{{baseURL}}/v2/messages

Request Body

{"channel"=>"email", "from"=>"{{fromEmailAddress}}", "to"=>[{"email"=>["{{toEmailAddress}}"], "substitutions"=>{"{{param1}}"=>"{{param1Value}}", "{{param2}}"=>"{{param2Value}}"}, "correlationId"=>""}], "substitutions"=>{"{{param3}}"=>"{{param3Value}}", "{{param4}}"=>"{{param4Value}}", "{{param5}}"=>"{{param5Value}}", "{{param6}}"=>"{{param6Value}}"}, "template"=>{"id"=>"{{templateId}}", "subject"=>"{{subject}}"}, "requestedReceipts"=>["submitted", "delivered", "read", "clicked", "bounce", "not verified", "invalid", "complaint", "failed"], "callbackData"=>"", "notifyUrl"=>"", "contactPolicy"=>{"contactPolicyGroup"=>"", "channelCheckConsent"=>true, "channelApplyFrequencyCap"=>true}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Keystring