Skip to main content
POST
/
email
Send an email
curl --request POST \
  --url https://backyard.posthoot.com/api/v1/email \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "bcc": "<string>",
  "cc": "<string>",
  "data": [
    123
  ],
  "html": "<string>",
  "provider": "CUSTOM",
  "replyTo": "<string>",
  "scheduleAt": "<string>",
  "subject": "<string>",
  "templateId": "<string>",
  "test": true,
  "to": "<string>"
}'
{}

Authorizations

Authorization
string
header
required

Enter the token with the Bearer: prefix, e.g. "Bearer abcde12345".

Body

application/json
data
integer[]
required
to
string
required
bcc
string
cc
string
html
string
provider
enum<string>
Available options:
CUSTOM,
GMAIL,
OUTLOOK,
AMAZON
replyTo
string
scheduleAt
string
subject
string
templateId
string
test
boolean

Response

200 - application/json

OK

{key}
string