Koltrix logoKoltrixDocs

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, each [email protected] or Ada <[email protected]>. Must be an array, even for one recipient. An international domain name is converted for you.
ccarray
Array of additional recipients, in the same forms as to.
bccarray
Array of additional recipients, in the same forms as to. They receive the message but never appear in any header.
subjectstringrequired
Subject line, up to 988 characters. Line breaks in it become spaces. Non-ASCII characters are encoded for you.
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.
  • Every address is checked before anything is queued: a bad one is a 400 that names it, and at most 1,000 recipients across to, cc and bcc are accepted.
  • 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 message with no body is sent with an empty one.
  • A retry with the same Idempotency-Key within 24 hours returns the original response with status 200 and the header Idempotent-Replayed: true, even if the quota has since run out.

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, each [email protected] or Ada <[email protected]>. Must be an array, even for one recipient. An international domain name is converted for you.
Array of additional recipients, in the same forms as to.
Array of additional recipients, in the same forms as to. They receive the message but never appear in any header.
Subject line, up to 988 characters. Line breaks in it become spaces. Non-ASCII characters are encoded for you.
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.