Email & PEC

Write a draft (does not send)

Creates an UNSENT draft in the outbox. Nothing leaves the building: sending is a separate tool with a separate permission, and a credential may well have this one and not that one. Use reply_to_message_id so the reply threads correctly. Tell the user the draft is saved unsent and where to find it.

post/api/v1/rest/email/outbox

Request

  • Base URL: https://api.custodo.ai
  • URL: https://api.custodo.ai/api/v1/rest/email/outbox
  • Auth: HTTP bearer

Headers

X-Tenant-Idstring uuid

The organisation to act in. An API key is bound to exactly one, so this is optional for a key and must match the one it was minted for.

Request body

account_idstring uuid required

Which mailbox to send from, from email_list_accounts.

tostring[] required

Recipient addresses.

ccstring[]
subjectstring required
body_textstring required

Plain text. Preferred: it renders everywhere.

reply_to_message_idstring uuid

The archived message this replies to. Sets the threading headers.

Response

Done. data is the tool’s own answer.

oktrue required
dataunknown required

Changes

No recorded changes to this operation across all 1 revision of this API.