cURL
curl --request POST \ --url https://api.pocketflows.com/campaign_templates/{id}/campaign_drafts \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "business": "<string>" } '
{ "name": "<string>", "enrolled_customers": [ "<string>" ], "segment": "<string>", "steps": [ { "type": "email", "email_template_id": "<string>", "custom_step_id": "<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 campaign template
The business ID
The created Campaign object
Campaign
The name of the campaign
The customers enrolled in the campaign
The segment attached to the campaign
The steps of the campaign
Show child attributes
The step type. Always "email" for this step
email
The ID of the email template to use in this step
Optional. The ID of the custom step to use in this step. The type of the custom step must be "email" as well