cURL
curl --request POST \ --url https://api.pocketflows.com/businesses/{id}/triggers \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --data '{ "trigger": "<string>", "name": "<string>", "filter": "<string>", "metadata": {}, "attributed_revenue": 123, "steps": [ { "type": "email", "custom_step_id": "<string>", "email_template_id": "<string>" } ], "email_address": "<string>", "phone_number": "<string>", "excluded_customers": [ "<string>" ] }'
{ "id": "<string>", "name": "<string>", "trigger": "<string>", "steps": [ { "type": "email", "custom_step_id": "<string>", "email_template_id": "<string>" } ], "status": "draft", "filter": "<string>", "email_address": "<string>", "phone_number": "<string>", "attributed_revenue": 123 }
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 business
The created Trigger object
Trigger
The response is of type object.
object