Send an email
POST
/api/v2/emailsQueues the message and returns 202 with the id of the first recipient's message record (one record is kept per recipient).
Needs an API key with the send scope. Scopes
Parameters
Body
fromstringrequired[email protected] or Acme <[email protected]>. Must be an active address on a verified domain in this workspace.toarrayrequiredArray of recipient addresses. Must be an array, even for one recipient.
ccarrayArray of additional recipients.
bccarrayArray of additional recipients. They receive the message but never appear in any header.
subjectstringrequiredSubject line.
body_htmlstringHTML body. Send this,
body_text, or both.body_textstringPlain-text body. Generated from
body_html when omitted.Headers
Idempotency-KeystringAny string identifying this logical send; reuse it on retries. Remembered for 24 hours. The Try it panel generates one per run.
Notes
- The From address must be an active address on a verified domain in your workspace.
- Fields not listed here, such as reply_to or attachments, are ignored.
torecipients appear in the To header andccrecipients in Cc;bccrecipients receive the message but never appear in any header, and a message with onlybccrecipients is sent withTo: undisclosed-recipients:;.- A retry with the same Idempotency-Key within 24 hours returns the original response with status 200 and the header Idempotent-Replayed: true.
Try it
Send this request from your browser.Input
What you sendStays in this browser tab (sessionStorage) and goes only to api.koltrix.com. Create one under Settings → API keys.
Requests are real and this one changes data in your workspace. Koltrix has no test mode, so use a dedicated key with only the permissions you need and revoke it when you are done.
Idempotency-Key is added for you: a new UUID for each send, and the same one if you retry after a network failure.
[email protected] or Acme <[email protected]>. Must be an active address on a verified domain in this workspace.
Array of recipient addresses. Must be an array, even for one recipient.
Array of additional recipients.
Array of additional recipients. They receive the message but never appear in any header.
Subject line.
HTML body. Send this, body_text, or both.
Plain-text body. Generated from body_html when omitted.
Valid JSON. The fields above and this editor stay in sync.
POST
https://api.koltrix.com/api/v2/emailsOutput
What comes backThe response appears here.
Press Send request.
Press Send request.