POST
/
email
/
transactional
curl --request POST \
  --url https://api.indiepitcher.com/v1/email/transactional \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "to": "john@acme.com",
  "subject": "You'\''ve been invited to IndiePitcher",
  "body": "You can use **markdown** to generate the email. Plain HTML is also supported.",
  "bodyFormat": "markdown",
  "trackEmailOpens": null,
  "trackEmailLinkClicks": null
}'
{
  "success": true
}

Authorizations

Authorization
string
header
required

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

Body

application/json
subject
string
required

The subject of the email.

body
string
required

The body of the email. Supports markdown and HTML

bodyFormat
enum<string>
required

The format of the email body. It can be either 'markdown' or 'html'.

Available options:
markdown,
html
to
string

Can be just an email "john@example.com", or an email with a neme "John Doe john@example.com"

trackEmailOpens
boolean

Whether to track email opens. Allow you to overwrite the project's global setting. Default: nil - Uses the project's global setting.

Whether to track when a users taps on a link in the email. Allow you to overwrite the project's global setting. Default: nil - Uses the project's global setting.

Response

200 - application/json
An empty response
success
boolean

Always true