Send Email Template

POST https://api.closum.com/v2/email-template/send/{{template_id}}?api-key={{api_key}}

Use this endpoint to send designed email templates with custom vars.
Apply {{varkey}} inside the email design, and prefill it with our api call.
Replace for example {{company
name}} with merge\[company_name\] : Closum

FieldRequiredNotes
email_toyes
replyTono
mergeno
from_nameno
attachmentsno

Request Params

KeyDatatypeRequiredDescription
api-keystring

Request Body

[{"name"=>"email_to", "value"=>"[\"{{email_to}}\", \"{{email_to}}\"]", "datatype"=>"string"}, {"name"=>"replyTo", "value"=>"{{email_to_reply}}", "datatype"=>"string"}, {"name"=>"from_name", "value"=>"{{from_name}}", "datatype"=>"string"}, {"name"=>"merge", "value"=>"{\"{{var_key}}\": \"{{var_value}}\",  \"{{var_key}}\": \"{{var_value}}\"}", "datatype"=>"string"}, {"name"=>"attachments[]", "value"=>nil, "datatype"=>"null"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring