KoltrixDocs

Send an email

POST/api/v2/emails

Queues 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.
toarrayrequired
Array of recipient addresses. Must be an array, even for one recipient.
ccarray
Array of additional recipients.
bccarray
Array of additional recipients. They receive the message but never appear in any header.
subjectstringrequired
Subject line.
body_htmlstring
HTML body. Send this, body_text, or both.
body_textstring
Plain-text body. Generated from body_html when omitted.

Headers

Idempotency-Keystring
Any 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.
  • to recipients appear in the To header and cc recipients in Cc; bcc recipients receive the message but never appear in any header, and a message with only bcc recipients is sent with To: 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 send

Stays 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.

POSThttps://api.koltrix.com/api/v2/emails

Output

What comes back
The response appears here.
Press Send request.