POST
/
businesses
/
{id}
/
email_blasts
curl --request POST \
  --url https://api.pocketflows.com/businesses/{id}/email_blasts \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "email_template": "<string>",
  "enrolled_customers": [
    "<string>"
  ],
  "excluded_customers": [
    "<string>"
  ],
  "email_address": "<string>",
  "segment": "<string>"
}'
{
  "id": "<string>",
  "name": "<string>",
  "email_template": "<string>",
  "one_off_email_template": "<string>",
  "subject": "<string>",
  "template_json": "<any>",
  "enrolled_customers": [
    "<string>"
  ],
  "excluded_customers": [
    "<string>"
  ],
  "segment": "<string>",
  "email_address": "<string>",
  "status": "<string>",
  "scheduled_at": "<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 business

Body

application/json

Response

200 - application/json

The created EmailBlast object

The response is of type object.