Send GDPR-related data
POST {{api-domain}}/crm/v4/Leads/{{record_id}}/actions/send_mail
Request Body
{"data"=>[{"from"=>{"user_name"=>"Patricia Boyle", "email"=>"patricia.boyle@zohocorp.com"}, "to"=>[{"user_name"=>"user1", "email"=>"mathew.p@zohocorp.com"}], "subject"=>"Mail subject", "content"=>"<br><a href=\"${ConsentForm.en_US}\" id=\"ConsentForm\" class=\"en_US\" target=\"_blank\">Consent form link</a><br><br><br><br><br><h3><span style=\"background-color: rgb(254, 255, 102)\">REGARDS,</span></h3><div><span style=\"background-color: rgb(254, 255, 102)\">AZ</span></div><div><span style=\"background-color: rgb(254, 255, 102)\">ADMIN</span></div> <div></div>", "consent_email"=>true, "mail_format"=>"html", "data_subject_request"=>{"id"=>"{{data_subject_request_id}}", "type"=>"access"}}]}
RESPONSES
status: OK
{"data":[{"code":"SUCCESS","details":{"message_id":"39c17f1033cd120e62f8104c545af0ef454331f740dc44c1fbd9d0f44f730961"},"message":"Your mail has been scheduled successfully.","status":"success"}]}