Create a trigger-automation step
POST /automations/{automationUuid}/automation_steps/trigger_automation
/automations/{automationUuid}/automation_steps/trigger_automationStarts another automation for the same contact when it reaches this step, through that automation's manual trigger, and lets the contact continue in this one. Its place in the flow is set with parent, parent_yes or parent_no; with none of them it becomes the first step.
When to use: To chain flows: hand a contact over to a long nurturing flow after an onboarding flow ends.
When not to use: To start an automation from outside Easymailing, use trigger_custom_api.
Side effects: The other automation must be active and have a manual trigger. If it is not, nothing is started there and the contact does not continue past this step either: its run stays stuck as running. If the manual trigger of the other automation is paused, or the contact is already running through it or has already finished it and the trigger does not allow repeating, nothing starts there but the contact does continue here. The other automation starts in the background. If the chosen position is already occupied, the new step is inserted there and the step that was there moves after it.
Permissions: Requires the author role or higher, or the marketing.automations.write capability.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the automation, as returned by list_automations.
The new AutomationStep resource
TypeScript Definitions
Use the request body type in TypeScript.
API Resource for automation steps.
This class defines the API endpoints and serves as the base class for all automation step types. Uses DiscriminatorMap for polymorphic serialization.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://api.easymailing.com/automations/0df14405-90ff-4287-b3e4-ef088901ee6f/automation_steps/trigger_automation" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "action": { "automation": "/entity/1" }, "parent": "/entity/1", "parent_yes": "/entity/1", "parent_no": "/entity/1" }'{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "step_type": "string", "automation": "/entity/1", "count_automation_queue_items_completed": 0, "count_automation_queue_items_in_queue": 0, "action": { "automation": "/entity/1" }, "children": { "next": { "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "step_type": "string", "automation": "/entity/1", "count_automation_queue_items_completed": 0, "count_automation_queue_items_in_queue": 0, "action": null, "children": null } }}