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

Body

application/json
from
string<email>
required
to
string<email>[]
required
subject
string
required
text
string
required
html
string
tags
object[]
headers
object
attachments
object[]

Response

status
number