Skip to main content
POST
/
email_templates
/
{id}
/
send
Send an email based off an email template
curl --request POST \
  --url https://api.pocketflows.com/email_templates/{id}/send \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "from": "<string>",
  "attachments": [
    {
      "content": "<string>",
      "name": "<string>"
    }
  ],
  "to": "<string>",
  "variables": {}
}'
{
  "id": "<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
  • Option 1
  • Option 2
from
string
required

The ID of the email address from which to send the email

to
string
required

The email address to send the email to

attachments
object[]

An array of attachments to include with the email

variables
object

The variables to be injected into the email template

Response

200 - application/json

The email that was sent

id
string
required

The ID of the email

I