OutboundEmail record for audit and correlation purposes.
You can use this endpoint in two modes:
draft_uidreply_to_message_uid (Gmail threading)planned_send_atdraft_uid:
reply_to_message_uid pointing at the existing message you are replying to.
For replies, the backend derives the sender inbox server-side from the conversation context (conversation_owner_email), so from_account_id is not required and is ignored if provided.
reply_to_message_uid is provided, the backend resolves Gmail threading parameters from the stored message + conversation integration mapping and sends using:
threadIdIn-Reply-To and Referencesdraft_uid is provided, the existing draft is loaded and sentdraft_uid, to and subject are required. from_account_id is required only for non-reply fresh sends (i.e. when reply_to_message_uid is not provided).idempotency_key can return an existing resultreply_to_message_uid is provided)SENT with provider IDs populated| Mode | Required fields |
|---|---|
| Send draft | draft_uid |
| Send fresh | from_account_id, to, subject |
| Send reply (threaded) | to, subject, reply_to_message_uid |
| Parameter | Description |
|---|---|
draft_uid | UUID of an existing draft to send |
reply_to_message_uid | UUID of an existing EmailMessage to reply to (enables Gmail threading via threadId + reply headers) |
cc / bcc | Additional recipients |
body_text | Plain text email body |
body_html | HTML email body (takes precedence for rich email clients) |
attachments | Array of attachments with filename, content_type, and data_base64 |
context_type / context_id | Link to a domain entity (e.g., invoice) |
idempotency_key | Unique key to prevent duplicate fresh sends |
reply_to_message_uid is validated and resolved server-side. A threaded reply requires:
Message-ID headerprovider_thread_id)OutboundEmail record details:
attachments[].data_base64), but size/type limits are not explicitly enforced at the API-doc level and may be constrained by upstream request limits or provider behavior.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.