POST
/
email_templates
/
{id}
/
send
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>"
}

This endpoint supports email attachments via the attachments field in the POST request. Note that the attachment contents must be in Data URL format. Furthermore, we only support base64 encoding

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

Response

200 - application/json

The email that was sent

The response is of type object.