Skip to main content
POST
/
api
/
email
/
send
curl --request POST \ --url https://core-api.getaptly.com/api/email/send \ --header 'Content-Type: application/json' \ --header 'x-token: <api-key>' \ --data ' { "discussionId": "stream_abc", "uuid": "draft_xyz" } '
{}

Documentation Index

Fetch the complete documentation index at: https://docs.getaptly.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-token
string
header
required

Body

application/json
discussionId
string

Stream ID from POST /api/email/create-draft. Required if uuid is set.

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

Response

Email sent successfully.

The response is of type object.