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 {{companyname}} with merge\[company_name\]
: Closum
Field | Required | Notes |
---|
email_to | yes | |
replyTo | no | |
merge | no | |
from_name | no | |
attachments | no | |
Request Params
Key | Datatype | Required | Description |
---|
api-key | string | | |
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"}]
Key | Datatype | Required | Description |
---|
Content-Type | string | | |