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, each
[email protected] or Ada <[email protected]>. Must be an array, even for one recipient. An international domain name is converted for you.ccarrayArray of additional recipients, in the same forms as
to.bccarrayArray of additional recipients, in the same forms as
to. They receive the message but never appear in any header.subjectstringrequiredSubject line, up to 988 characters. Line breaks in it become spaces. Non-ASCII characters are encoded for you.
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.
- 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,ccandbccare accepted. - 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 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 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, 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.
POST
https://api.koltrix.com/api/v2/emailsOutput
What comes backThe response appears here.
Press Send request.
Press Send request.