Skip to main content
POST
/
emails
/
send
Send Email
curl --request POST \
  --url https://api.deliverykey.com/v1/emails/send \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "from": "[email protected]",
  "to": "[email protected]",
  "subject": "Hello, World!",
  "html": "<string>",
  "text": "<string>"
}
'
{
  "data": {
    "from": "[email protected]",
    "to": "[email protected]",
    "subject": "Hello, World!",
    "html": "<string>",
    "id": "b722edc1-7ad4-4845-9fa5-e4c4f2a923d4",
    "text": "<string>",
    "created_at": "2022-10-12T18:57:23.000000Z"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
from
string
required
to
string
required
subject
string
required
Example:

"Hello, World!"

html
string | null
required
text
string | null

Response

OK

data
object