cURL
curl --request POST \ --url https://api.pocketflows.com/trigger_templates/{id}/trigger_drafts \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data ' { "business": "<string>" } '
{ "name": "<string>", "trigger": "<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 trigger template
The business ID
The created Trigger draft
Trigger
The name of the trigger
The event that triggers the trigger
The steps of the trigger
Show child attributes