Easymailing
Automation steps

Create a delay step

POST /automations/{automationUuid}/automation_steps/delay

POST/automations/{automationUuid}/automation_steps/delay

Holds the contact before it moves to the next step, either for a relative amount of time (minutes, hours, days or weeks) or until a fixed moment: a time of day, certain weekdays, a day of the month or a calendar date. 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: Between steps of a flow: wait two days after a welcome email before the follow-up, or hold the next message until 9:00 the next morning.

When not to use: To branch on what the contact did, use create_step_condition; a delay only waits.

Side effects: The wait starts when the contact reaches the step. Time is counted in the contact's time zone, or in the audience's if the contact has none, or in UTC. A time-of-day wait ends at the next occurrence of that time, and a calendar date that has already passed lets the contact continue at once. Known issue: day_week is saved as the numbers you send (0 = Sunday), but the engine that resumes the contact reads weekday names, so a contact that reaches a specific_day_week wait may get stuck there; use another unit for now. 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.

Authorization

X-Auth-Token<token>

Value for the X-Auth-Token header parameter.

In: header

Path Parameters

automationUuid*string

UUID of the automation, as returned by list_automations.

Request Body

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/delay" \  -H "X-Auth-Token: YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "action": {      "delay_value": 0,      "delay_unit": "minute",      "time_hour": 0,      "time_minute": 0,      "day_week": [        0      ],      "day_month": 0,      "date_year": "2019-08-24T14:15:22Z"    },    "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": {    "delay_value": 0,    "delay_unit": "minute",    "time_hour": 0,    "time_minute": 0,    "day_week": [      0    ],    "day_month": 0,    "date_year": "2019-08-24T14:15:22Z"  },  "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    }  }}