Skip to main content
POST
/
email_templates
/
{id}
/
draft_send
Draft send an email based off an email template
curl --request POST \
  --url https://api.pocketflows.com/email_templates/{id}/draft_send \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "from": "<string>",
  "to": "<string>",
  "variables": {}
}'
{
  "from": "<string>",
  "to": "<string>",
  "subject": "<string>",
  "body": "<string>"
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

id
string
required

The ID of the email template

Body

application/json
from
string
required

The ID of the email address to send from

to
string
required

The email address to send to

variables
object

Variables to use in the email template

Response

200 - application/json

A DraftEmail representing what would have been sent

from
string
required

The from address of the draft email

to
string
required

The to address of the draft email

subject
string
required

The subject of the draft email

body
string
required

The body of the draft email

I