Send, or propose a send
POST
/api/v2/agent-mailboxes/:id/sendWhat happens depends on the mailbox's autonomy level.
Needs an API key with the send scope. Scopes
Parameters
Path
idstringrequiredThe agent mailbox id, or
me.Body
toarrayrequiredRecipient addresses.
ccarrayCc addresses.
subjectstringrequiredOne line, up to 500 characters.
body_textstringrequiredPlain text body, up to 100 KB.
in_reply_tostringThe Message-ID being answered: no spaces, angle brackets or line breaks.
thread_idstringThe conversation to reply in.
Headers
Idempotency-KeystringMakes a retry return the first result. Up to 200 characters.
Notes
suggestsaves a draft for a person and returns 202 withstatus: saved_as_suggestion.approveputs the message in the Action center for a person to approve and returns 202 withstatus: pending_approvaland anitem_id.autosends 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_becausesays why. autoalso needs athread_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_idmust be a conversation the mailbox has received mail in.- Up to 20 recipients;
bccis never sent automatically. - Pass an
Idempotency-Keyheader 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 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.
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.
POST
https://api.koltrix.com/api/v2/agent-mailboxes/me/sendOutput
What comes backThe response appears here.
Press Send request.
Press Send request.