POST
/
emails
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

The body is of type object.

Response

201
application/json
Email sent successfully

The response is of type object.