Send a message over a verified domain. Pass templateId (+ optional templateData) to send from a saved or base template.
HTTP: POST /v1/send
| Field | Type | Required | Description |
|---|---|---|---|
from |
string | ✓ | An address on a verified domain. |
to |
string | array | ✓ | One recipient or a list. |
subject |
string | Required unless supplied by a template. | |
html |
string | ||
text |
string | ||
templateId |
string | Send using a saved template — a user template (tpl_…) or a base template (base_…). Its… | |
templateData |
object | Values substituted into the template's {{merge_tags}} (e.g. {"name":"Ann"} fills… | |
cc |
string | array | ||
bcc |
string | array | ||
replyTo |
string | ||
inReplyTo |
string | ||
headers |
object | Extra raw MIME headers, applied after threading headers (caller wins). Use for what the… | |
attachments |
array |
send-response — see the send-response schema.
Object res = mk.send(Map.of("from", "hello@app.mailkite.dev", "to", "ada@example.com", "subject", "Hi", "text", "It works."));