v1

latestSwagger 2.0Private2026-08-04128286690.5 KB
Automations

Create an Automation

Use this method to create a new automation campaign workflow from scratch by providing trigger information. For example, an automation that triggers when contacts join a list or an automation that triggers for a contact birthday.

Some common automation examples are included in the request body example dropdown menu.

post/automations/workflows

Query parameters

workflowNamestring

Use this query parameter to provide a workflow name and override the default name.

Request body

action_namestring

Action name. Required for type Action or Date. Identifies the specific trigger (e.g., list_join, calendar_date, visits_page).

engagement_levelstring

Engagement level for engagement_level triggers (e.g., SOMEWHAT, LEAST).

segment_idstring

Segment ID for segment_join triggers.

typestring

Trigger type. Determines how the trigger is evaluated (e.g., Action, Date, segment_join).

unique_bystring

Deduplication key: run the workflow at most once per contact per this value (e.g., list_ids, contact_id).

Example request

{
  "action_name": "list_join",
  "engagement_level": "SOMEWHAT",
  "type": "Action",
  "unique_by": "list_ids"
}

Response

Request successful

idstring

The unique identifier for the automation campaign workflow.

namestring

The name of the automation campaign.

descriptionstring

The description of the automation campaign.

statusstring

Computed display status of the workflow

name_explicitly_setboolean

Indicates whether the automation campaign name was explicitly set.