Skip to main content
POST
/
utils
/
email
Send an HTML email to one or more recipients
curl --request POST \
  --url https://api.example.com/utils/email \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "recipients": [
    "jsmith@example.com"
  ],
  "body": "<string>",
  "subject": "<string>"
}
'
{
  "error": {
    "message": "<string>",
    "request_id": "<string>",
    "timestamp": "2023-11-07T05:31:56Z",
    "details": {}
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.emergence.ai/llms.txt

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

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request body for sending email.

recipients
string<email>[]
required

Email addresses of recipients

Minimum array length: 1
body
string
required

HTML body of the email

subject
string | null

Subject of the email

Response

Successful Response