Koltrix logoKoltrixDocs

Send, or propose a send

POST/api/v2/agent-mailboxes/:id/send

What happens depends on the mailbox's autonomy level.

Needs an API key with the send scope. Scopes

Parameters

Path

idstringrequired
The agent mailbox id, or me.

Body

toarrayrequired
Recipient addresses.
ccarray
Cc addresses.
subjectstringrequired
One line, up to 500 characters.
body_textstringrequired
Plain text body, up to 100 KB.
in_reply_tostring
The Message-ID being answered: no spaces, angle brackets or line breaks.
thread_idstring
The conversation to reply in.

Headers

Idempotency-Keystring
Makes a retry return the first result. Up to 200 characters.

Notes

  • suggest saves a draft for a person and returns 202 with status: saved_as_suggestion.
  • approve puts the message in the Action center for a person to approve and returns 202 with status: pending_approval and an item_id.
  • auto sends right away (200, status: sent) only when every rule passes: each recipient is in the mailbox's allowed recipients or already known from the thread (never someone new), the daily cap is not reached, it is outside quiet hours, the kill switch is off, and no message in the thread is rated risky by the injection shield.
  • If any rule fails the message is held for approval (202) and held_because says why.
  • auto also needs a thread_id (it only replies inside a conversation), needs every recipient to be on the mailbox's allowed recipients AND someone already in the conversation, and is switched off on the server unless the workspace operator turned it on (held_because: auto_disabled).
  • thread_id must be a conversation the mailbox has received mail in.
  • Up to 20 recipients; bcc is never sent automatically.
  • Pass an Idempotency-Key header so a retry returns the first result instead of acting twice.
  • The workspace's billing state and plan send quota apply: an expired or suspended workspace gets 402, a workspace over its quota gets 429.

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.
The agent mailbox id, or me.
Recipient addresses.
Cc addresses.
One line, up to 500 characters.
Plain text body, up to 100 KB.
The Message-ID being answered: no spaces, angle brackets or line breaks.
The conversation to reply in.

Valid JSON. The fields above and this editor stay in sync.

POSThttps://api.koltrix.com/api/v2/agent-mailboxes/me/send

Output

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