Skip to main content
POST
/
api
/
email-drafts
/
send
Send email directly
curl --request POST \
  --url https://api.morphic.io/api/email-drafts/send \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "bcc_emails": [],
  "body_html": "<p>Hi, thanks for your time today.</p>",
  "cc_emails": [],
  "subject": "Follow-up: Product Demo",
  "to_emails": [
    "jane@acme.com"
  ]
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

API key (sk_xxx) from Developer Settings. No X-Account-ID needed.

Headers

x-account-id
string | null

Body

application/json
body_html
string
required
Minimum string length: 1
subject
string | null
to_emails
string[]
Minimum array length: 1
cc_emails
string[]
bcc_emails
string[]
attachments
Attachments · object[]

Response

Successful Response