Skip to main content
POST
/
emails
cURL
curl --request POST \
  --url https://api.sendrealm.com/emails \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "from": "jsmith@example.com",
  "to": [
    "jsmith@example.com"
  ],
  "subject": "<string>",
  "text": "<string>",
  "html": "<string>",
  "tags": [
    {
      "name": "<string>",
      "value": "<string>"
    }
  ],
  "headers": {},
  "attachments": [
    {
      "name": "<string>",
      "type": "<string>",
      "data": "<string>"
    }
  ]
}'
{
  "status": 123
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Send an email

from
string<email>
required

Email address of the sender

to
string<email>[]
required

List of recipient email addresses

subject
string
required

Subject of the email

text
string
required

Plain text content of the email

html
string

HTML content of the email

tags
object[]

Tags associated with the email

headers
object

Custom headers for the email

attachments
object[]

Attachments included in the email

Response

Email sent successfully

status
number

Response message

I