cURL
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>" }
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Basic <encoded-value>
<encoded-value>
username:password
The ID of the email template
The ID of the email address to send from
The email address to send to
Variables to use in the email template
A DraftEmail representing what would have been sent
DraftEmail
The from address of the draft email
The to address of the draft email
The subject of the draft email
The body of the draft email