Skip to main content
POST

Authorizations

x-token
string
header
required

Body

application/json
discussionId
string

Stream ID from POST /api/email/create-draft (required if uuid is set). When supplied without uuid, the on-the-fly draft is appended as a reply into this existing thread (same company + channel) instead of starting a new discussion; the thread's subject is kept.

uuid
string

Draft UUID from POST /api/email/create-draft. Required if discussionId is set.

failOnCreateNewThread
boolean
default:true

If true (default), the send fails when the email would create a new discussion thread rather than reply to an existing one.

userId
string

Required when sending on-the-fly (no discussionId/uuid).

channelId
string

Required when sending on-the-fly.

to
object[]
cc
object[]
bcc
object[]
subject
string
body
string

Email body (plain text or HTML). To embed an uploaded image inline, add an <img> whose src is the file's download URL from POST /api/files/upload-complete (.../cdn/storage/AptlyFiles/<fileId>/original/...). Inline images are auto-detected, tagged with data-inline-image-id, and registered on the draft — do not also list them in attachmentIds. Applies when the draft is created on-the-fly (no discussionId/uuid).

attachmentIds
string[]

File ids to include as regular attachments (applies when the draft is created on-the-fly). Upload each file first (POST /api/files/upload-url with attachEntityType channel and the same channelId → upload to S3 → POST /api/files/upload-complete), then pass the resulting fileIds here. Each must reference a finished upload.

aptletInstanceId
string

Card to link the outbound to. Logs the email as an activity on the card and tags the discussion. Works whether the draft was pre-created or is created on-the-fly.

Response

Email sent successfully.

The response is of type object.