Skip to Content
MailerLite
MailerLite API

Automations

List, create, update, copy, enable and disable automations, and manage the subscribers running through them.

Automations are the workflows that send email in response to something a subscriber does, such as joining a group, submitting a form or completing a purchase.

Through the API you can list automations with their triggers and steps, read a single automation's full workflow, create a draft, update, copy, enable and disable it, and manage the subscribers who run through it.

An automation created here is a draft with no trigger and no steps, so it cannot be enabled until you finish configuring it.

A deleted automation returns 410 Gone on every endpoint that takes its ID.

Subscriber activity

The activity endpoint reports who has been through an automation. filter[status] is required and decides which subscribers you get:

StatusReturns
completedSubscribers who finished the whole workflow.
activeSubscribers currently part-way through it.
canceledSubscribers whose run was stopped.
failedSubscribers whose run could not continue.

Date filters apply to different statuses. Use filter[date_from] and filter[date_to] for runs that have finished, and filter[scheduled_from] and filter[scheduled_to] for runs that are still active.

List all automations

If you want to get all of your automations use this GET request

GET https://connect.mailerlite.com/api/automations

Each automation comes with its trigger configuration, steps and email stats. Use filter[enabled] to separate active automations from inactive ones, or filter[group] to find every automation triggered by a group.

Request parameters

ParameterTypeRequiredLimitations
filter[folder]integernoReturns only automations in this folder, by folder ID
filter[group]integernoReturns only automations whose trigger is configured with this group, by group ID
filter[enabled]stringnoMust be true (active) or false (inactive). 1 and 0 also work. Returns all automations when omitted
filter[status]stringnoAlias of filter[enabled]. Accepts true for active and false for inactive
filter[name]stringnoReturns only automations whose name contains this value
filter[automation_state]stringnoMust be workflows (complete, working automations) or drafts (incomplete or broken ones)
filter[drafts_state]stringnoNarrows the drafts listing. Must be complete_workflow (drafts that are not finished) or broken_workflow (drafts with a broken step)
sortstringnoMust be one of created_at, name, enabled, sent, open_rate or click_rate. Prefix with - for descending order, e.g. -sent
with_stepsstringnoMust be true or false (1 and 0 also work). Embeds each automation's steps. Defaults to true
pageintegernoPage number to return. Counting starts from 1
limitintegernoNumber of automations per page. Defaults to 10. 0 is not allowed

Response

Response code: 200 OK

meta.aggregations counts your automations in each state before filter[automation_state] applies, so it can be higher than meta.total.

{
  "data": [
    {
      "id": "203114220633457868",
      "name": "Welcome series",
      "enabled": false,
      "trigger_data": {
        "track_ecommerce": false,
        "broken_workflow": false,
        "complete_workflow": true,
        "show_analytics": true,
        "valid": true,
        "repeatable": false,
        "repeatable_settings": {
          "mode": "wait",
          "value": 1,
          "unit": "day"
        },
        "test_workflow_in_progress": false
      },
      "triggers": [
        {
          "id": "203114222968636621",
          "type": "subscriber_joins_group",
          "group_ids": [
            "203105145192450069"
          ],
          "groups": [
            {
              "id": "203105145192450069",
              "name": "Test",
              "url": "https://connect.mailerlite.com/groups/203105145192450069"
            }
          ],
          "exclude_group_ids": [
            "203114217220344581"
          ],
          "excluded_groups": [
            {
              "id": "203114217220344581",
              "name": "Newsletter readers",
              "url": "https://connect.mailerlite.com/groups/203114217220344581"
            }
          ],
          "broken": false,
          "complete": true,
          "exit_when_no_longer_matches": false
        }
      ],
      "complete": true,
      "broken": false,
      "warnings": [],
      "emails_count": 3,
      "first_email_screenshot_url": null,
      "stats": {
        "completed_subscribers_count": 0,
        "subscribers_in_queue_count": 0,
        "bounce_rate": {
          "float": 0,
          "string": "0%"
        },
        "click_to_open_rate": {
          "float": 0,
          "string": "0%"
        },
        "sent": 0,
        "opens_count": 0,
        "unique_opens_count": null,
        "open_rate": {
          "float": 0,
          "string": "0%"
        },
        "clicks_count": 0,
        "unique_clicks_count": null,
        "click_rate": {
          "float": 0,
          "string": "0%"
        },
        "unsubscribes_count": 0,
        "unsubscribe_rate": {
          "float": 0,
          "string": "0%"
        },
        "spam_count": 0,
        "spam_rate": {
          "float": 0,
          "string": "0%"
        },
        "hard_bounces_count": 0,
        "hard_bounce_rate": {
          "float": 0,
          "string": "0%"
        },
        "soft_bounces_count": 0,
        "soft_bounce_rate": {
          "float": 0,
          "string": "0%"
        },
        "forward_rate": {
          "float": 0,
          "string": "0%"
        },
        "social_interactions_count": null,
        "social_interaction_rate": {
          "float": 0,
          "string": "0%"
        }
      },
      "created_at": "2026-11-03 11:20:15",
      "has_banned_content": false,
      "qualified_subscribers_count": 0,
      "automation_template_id": null,
      "automation_template_name": null,
      "building_in_progress": false,
      "steps": [
        {
          "id": "203114224673622808",
          "type": "email",
          "parent_id": null,
          "name": "Welcome email",
          "subject": "Welcome to the newsletter, {$name}",
          "from": "dummy@example.com",
          "from_name": "Dummy Testerson",
          "reply_to": "dummy@example.com",
          "email_id": "203114224708224206",
          "email": {
            "id": "203114224708224206",
            "account_id": "1",
            "emailable_id": "203114220633457868",
            "emailable_type": "automations",
            "type": "builder_html",
            "from": "dummy@example.com",
            "from_name": "Dummy Testerson",
            "reply_to": "dummy@example.com",
            "name": "Welcome email",
            "subject": "Welcome to the newsletter, {$name}",
            "plain_text": "Hello,\n\nYou have received a newsletter from {$account}.\n\n...",
            "screenshot_url": null,
            "uses_new_builder": false,
            "uses_landscape_screenshot": true,
            "generate_screenshot_timestamp": "2026-11-03 11:20:56",
            "is_building_content": false,
            "preview_url": "https://preview.mailerlite.io/emails/1234567890/preview",
            "report_preview_url": "https://preview.mailerlite.io/emails/1234567890/preview",
            "created_at": "2026-11-03 11:20:19",
            "updated_at": "2026-11-03 11:20:56",
            "is_designed": true,
            "language_id": null,
            "is_winner": false,
            "stats": {
              "sent": 0,
              "opens_count": 0,
              "open_rate": {
                "float": 0,
                "string": "0%"
              },
              "clicks_count": 0,
              "click_rate": {
                "float": 0,
                "string": "0%"
              },
              "unsubscribes_count": 0,
              "unsubscribe_rate": {
                "float": 0,
                "string": "0%"
              },
              "spam_count": 0,
              "spam_rate": {
                "float": 0,
                "string": "0%"
              },
              "hard_bounces_count": 0,
              "hard_bounce_rate": {
                "float": 0,
                "string": "0%"
              },
              "soft_bounces_count": 0,
              "soft_bounce_rate": {
                "float": 0,
                "string": "0%"
              },
              "deliveries_count": 0,
              "delivery_rate": {
                "float": 0,
                "string": "0%"
              },
              "forwards_count": 0,
              "forward_rate": {
                "float": 0,
                "string": "0%"
              },
              "social_interactions_count": 0,
              "social_interaction_rate": {
                "float": 0,
                "string": "0%"
              },
              "click_to_open_rate": {
                "float": 0,
                "string": "0%"
              }
            },
            "send_after": null,
            "track_opens": true,
            "uses_survey": false,
            "uses_quiz": false,
            "preheader": null
          },
          "language_id": 4,
          "complete": true,
          "created_at": "2026-11-03 11:20:19",
          "updated_at": "2026-11-03 11:20:50",
          "track_opens": true,
          "google_analytics": null,
          "tracking_was_disabled": false,
          "broken": false,
          "has_unsubscribe_url": true,
          "has_good_unsubscribe_contrast": true,
          "has_unlinked_buttons": false,
          "eligible_for_sending": true,
          "preheader": null,
          "builder_type": "builder_html",
          "description": "Send \"Welcome to the newsletter, {$name}\" email",
          "type_count": null
        },
        {
          "id": "203114227995511577",
          "type": "delay",
          "parent_id": "203114224673622808",
          "unit": "days",
          "complete": true,
          "created_at": "2026-11-03 11:20:22",
          "updated_at": "2026-11-03 11:21:00",
          "value": 3,
          "description": "Wait for 3 days",
          "type_count": null
        }
      ]
    }
  ],
  "links": {
    "first": "https://connect.mailerlite.com/api/automations?page=1",
    "last": "https://connect.mailerlite.com/api/automations?page=1",
    "prev": null,
    "next": null
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 1,
    "links": [
      {
        "url": null,
        "label": "« Previous",
        "page": null,
        "active": false
      },
      {
        "url": "https://connect.mailerlite.com/api/automations?page=1",
        "label": "1",
        "page": 1,
        "active": true
      },
      {
        "url": null,
        "label": "Next »",
        "page": null,
        "active": false
      }
    ],
    "path": "https://connect.mailerlite.com/api/automations",
    "per_page": 10,
    "to": 1,
    "total": 1,
    "aggregations": {
      "workflows": 1,
      "drafts": 1,
      "unsync": 0,
      "all": 2
    }
  }
}

Get an automation

If you want to fetch a specific automation you can use this GET endpoint

GET https://connect.mailerlite.com/api/automations/{automation_id}

Request parameters

ParameterTypeRequiredLimitations
includestringnoSend flow to also get meta.flow: the steps in workflow order, each with its step_id, type, parent_id, branch, depth and position (its number among the steps of the same type)

Response

Response code: 200 OK
{
  "data": {
    "id": "57444257882965766",
    "name": "Automation 1",
    "enabled": false,
    "trigger_data": {
      "track_ecommerce": false,
      "repeatable": false,
      "valid": true
    },
    "steps": [
      {
        "id": "57444257892403137",
        "type": "delay",
        "parent_id": null,
        "unit": "minutes",
        "complete": true,
        "created_at": "2022-06-09 13:58:33",
        "updated_at": "2022-06-09 13:58:33",
        "value": "5",
        "description": "Wait for 5 minutes"
      },
      {
        "id": "57444261587584962",
        "type": "email",
        "parent_id": "57444257892403137",
        "name": "mail",
        "subject": "mail {$name}",
        "from": "dummy@mailerlite.io",
        "from_name": "Dummy Testerson",
        "email_id": "57444261557176071",
        "email": {
          "id": "57444261557176071",
          "account_id": "1",
          "emailable_id": "57444257882965766",
          "emailable_type": "automations",
          "type": "builder",
          "from": "dummy@mailerlite.io",
          "from_name": "Dummy Testerson",
          "name": "mail",
          "subject": "mail {$name}",
          "plain_text": null,
          "screenshot_url": null,
          "preview_url": null,
          "created_at": "2022-06-09 13:58:36",
          "updated_at": "2022-06-09 13:58:42",
          "is_designed": true,
          "language_id": 4,
          "is_winner": false,
          "stats": {
            "sent": 0,
            "opens_count": 0,
            "open_rate": {
              "float": 0,
              "string": "0%"
            },
            "clicks_count": 0,
            "click_rate": {
              "float": 0,
              "string": "0%"
            },
            "unsubscribes_count": 0,
            "unsubscribe_rate": {
              "float": 0,
              "string": "0%"
            },
            "spam_count": 0,
            "spam_rate": {
              "float": 0,
              "string": "0%"
            },
            "hard_bounces_count": 0,
            "hard_bounce_rate": {
              "float": 0,
              "string": "0%"
            },
            "soft_bounces_count": 0,
            "soft_bounce_rate": {
              "float": 0,
              "string": "0%"
            },
            "forwards_count": 0
          },
          "send_after": null,
          "track_opens": true
        },
        "language_id": 4,
        "complete": true,
        "created_at": "2022-06-09 13:58:36",
        "updated_at": "2022-06-09 13:58:36",
        "track_opens": true,
        "google_analytics": null,
        "tracking_was_disabled": false,
        "description": "Send \"mail {$name}\" email"
      }
    ],
    "triggers": [
      {
        "id": "80916950725690939",
        "type": "subscriber_joins_group",
        "group_ids": [
          "80916981736277582"
        ],
        "groups": [
          {
            "id": "80916981736277582",
            "name": "My Group",
            "url": null
          }
        ],
        "exclude_group_ids": [],
        "excluded_groups": [],
        "broken": false
      }
    ],
    "complete": true,
    "broken": false,
    "warnings": [],
    "emails_count": 1,
    "first_email_screenshot_url": null,
    "stats": {
      "completed_subscribers_count": 0,
      "subscribers_in_queue_count": 0,
      "bounce_rate": {
        "float": 0,
        "string": "0%"
      },
      "click_to_open_rate": {
        "float": 0,
        "string": "0%"
      },
      "sent": 0,
      "opens_count": 0,
      "unique_opens_count": null,
      "open_rate": {
        "float": 0,
        "string": "0%"
      },
      "clicks_count": 0,
      "unique_clicks_count": null,
      "click_rate": {
        "float": 0,
        "string": "0%"
      },
      "unsubscribes_count": 0,
      "unsubscribe_rate": {
        "float": 0,
        "string": "0%"
      },
      "spam_count": 0,
      "spam_rate": {
        "float": 0,
        "string": "0%"
      },
      "hard_bounces_count": 0,
      "hard_bounce_rate": {
        "float": 0,
        "string": "0%"
      },
      "soft_bounces_count": 0,
      "soft_bounce_rate": {
        "float": 0,
        "string": "0%"
      }
    },
    "created_at": "2022-06-09 13:58:33",
    "has_banned_content": false,
    "qualified_subscribers_count": 63
  }
}

Error

When providing an invalid automation id

Response code: 404 Not Found

Get the subscriber activity for an automation

If you want to fetch the subscriber activity for an automation use this GET request

GET https://connect.mailerlite.com/api/automations/{automation_id}/activity

Request parameters

ParameterTypeRequiredLimitations
filter[status]stringyesMust be one of the following: completed, active, canceled, failed
filter[date_from]datenoMust be in the format Y-m-d. Only includes activity on or after this date. Relevant for statuses: completed, canceled, failed
filter[date_to]datenoMust be in the format Y-m-d. Only includes activity on or before this date. Relevant for statuses: completed, canceled, failed
filter[scheduled_from]datenoMust be in the format Y-m-d. Only includes subscribers scheduled on or after this date. Relevant for active status
filter[scheduled_to]datenoMust be in the format Y-m-d. Only includes subscribers scheduled on or before this date. Relevant for active status
filter[search]stringnoMust be a subscriber email. Returns only that subscriber's activity
with_subscribersbooleannoInclude it to embed each entry's subscriber (id, email and name). Any value turns it on
sortstringnoMust be one of id, updated_at, subscriber.email or next_step.scheduled_for. Prefix with - for descending order. Defaults to updated_at
pageintegernoPage number to return. Counting starts from 1
limitintegernoNumber of entries per page. Defaults to 50, maximum 2000

Response

Response code: 200 OK
{
  "data": [
    {
      "id": "63060835041281261",
      "status": "Completed",
      "date": "2022-08-10 14:13:08",
      "reason": null,
      "reason_description": "",
      "stepRuns": [
        {
          "id": "63060835092661486",
          "step_id": "63060773780325602",
          "description": "Wait for 10 minutes",
          "scheduled_for": "2022-08-10 14:12:11"
        },
        {
          "id": "63062186887480569",
          "step_id": "61226379035805534",
          "description": "Send \"Hello\" email",
          "scheduled_for": null
        }
      ],
      "nextStep": {
        "id": "76468141616531049",
        "type": "condition",
        "parent_id": "61226379035805534",
        "complete": true,
        "broken": false,
        "yes_step_id": "76468160915572330",
        "no_step_id": null,
        "matching_type": "any",
        "conditions": [
          {
            "type": "custom_fields",
            "field_id": "5",
            "action": "contains",
            "action_value": "unknown",
            "field": {
              "id": "5",
              "name": "City",
              "type": "text"
            }
          }
        ],
        "created_at": "2022-07-21 07:54:02",
        "updated_at": "2022-07-21 07:54:02",
        "description": "Check some condition"
      },
      "currentStep": {
        "id": "61226379035805534",
        "type": "email",
        "parent_id": "63060773780325602",
        "name": "gfg",
        "subject": "gfg",
        "from": "dummy@mailerlite.io",
        "from_name": "Dummy Testerson",
        "email_id": "61226396694873374",
        "email": {
          "id": "61226396694873374",
          "account_id": "1",
          "emailable_id": "61041127433700472",
          "emailable_type": "automations",
          "type": "builder",
          "from": "dummy@mailerlite.io",
          "from_name": "Dummy Testerson",
          "name": "Hello",
          "subject": "Hello",
          "plain_text": null,
          "screenshot_url": null,
          "preview_url": null,
          "created_at": "2022-07-21 07:54:02",
          "updated_at": "2022-08-10 14:13:08",
          "is_designed": true,
          "language_id": 4,
          "is_winner": false,
          "stats": {
            "sent": 3,
            "opens_count": 0,
            "open_rate": {
              "float": 0,
              "string": "0%"
            },
            "clicks_count": 0,
            "click_rate": {
              "float": 0,
              "string": "0%"
            },
            "unsubscribes_count": 0,
            "unsubscribe_rate": {
              "float": 0,
              "string": "0%"
            },
            "spam_count": 0,
            "spam_rate": {
              "float": 0,
              "string": "0%"
            },
            "hard_bounces_count": 0,
            "hard_bounce_rate": {
              "float": 0,
              "string": "0%"
            },
            "soft_bounces_count": 0,
            "soft_bounce_rate": {
              "float": 0,
              "string": "0%"
            },
            "forwards_count": 0
          },
          "send_after": null,
          "track_opens": true
        },
        "language_id": 4,
        "complete": true,
        "created_at": "2022-07-21 07:53:45",
        "updated_at": "2022-08-10 13:50:40",
        "track_opens": true,
        "google_analytics": null,
        "tracking_was_disabled": false,
        "description": "Send \"gfg\" email"
      }
    }
  ],
  "links": {
    "first": "https://connect.mailerlite.com/api/automations/{automation_id}/activity?page=1",
    "last": "https://connect.mailerlite.com/api/automations/{automation_id}/activity?page=1",
    "prev": null,
    "next": null
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 1,
    "links": [
      {
        "url": null,
        "label": "« Previous",
        "active": false
      },
      {
        "url": "https://connect.mailerlite.com/api/automations/{automation_id}/activity?page=1",
        "label": "1",
        "active": true
      },
      {
        "url": null,
        "label": "Next »",
        "active": false
      }
    ],
    "path": "https://connect.mailerlite.com/api/automations/{automation_id}/activity",
    "per_page": 50,
    "to": 3,
    "total": 3
  }
}

Error

When providing an invalid automation id

Response code: 404 Not Found

Create draft automation

If you want to create draft automations use this POST request

POST https://connect.mailerlite.com/api/automations

Request parameters

ParameterTypeRequiredLimitations
namestringyesThe name of the automation. Up to 255 characters

Response

Response code: 201 Created
{
  "data": {
    "id": "100000000000000000",
    "name": "Created_automation",
    "enabled": false,
    "trigger_data": {
      "track_ecommerce": false
    },
    "warnings": [],
    "stats": {
      "completed_subscribers_count": 0,
      "subscribers_in_queue_count": 0,
      "bounce_rate": {
        "float": 0,
        "string": "0%"
      },
      "click_to_open_rate": {
        "float": 0,
        "string": "0%"
      },
      "sent": null,
      "opens_count": null,
      "unique_opens_count": null,
      "open_rate": {
        "float": 0,
        "string": "0%"
      },
      "clicks_count": null,
      "unique_clicks_count": null,
      "click_rate": {
        "float": 0,
        "string": "0%"
      },
      "unsubscribes_count": null,
      "unsubscribe_rate": {
        "float": 0,
        "string": "0%"
      },
      "spam_count": null,
      "spam_rate": {
        "float": 0,
        "string": "0%"
      },
      "hard_bounces_count": null,
      "hard_bounce_rate": {
        "float": 0,
        "string": "0%"
      },
      "soft_bounces_count": null,
      "soft_bounce_rate": {
        "float": 0,
        "string": "0%"
      },
      "forward_rate": {
        "float": 0,
        "string": "0%"
      },
      "social_interactions_count": null,
      "social_interaction_rate": {
        "float": 0,
        "string": "0%"
      }
    },
    "created_at": "2024-08-01 00:00:00",
    "has_banned_content": false,
    "steps": []
  }
}

Update an automation

If you want to rename an automation or change its trigger-level settings use this PUT request

PUT https://connect.mailerlite.com/api/automations/{automation_id}

You can also replace the automation's triggers in the same call with triggers, or change trigger_data. An active automation is locked, so these changes return a 422 unless you also send enabled.

enabled sets the state the automation ends up in after the request. Leave it out to keep the current state.

  • enabled: true applies your changes and then enables the automation, with the same checks as enabling an automation. If the automation is already active, it's disabled first, changed, then enabled again.
  • enabled: false disables the automation and applies your changes.

If the automation can't be enabled, your changes are still saved, the automation stays inactive and the response is a 422 with meta.enabled: false. This can switch off an automation that was active before the request.

Use the trigger endpoints for anything more than a rename.

Request body

ParameterTypeRequiredLimitations
namestringnoThe automation's name, as shown in your automations list. Up to 255 characters. Omit it to keep the current name
enabledbooleannoWhether the automation should be active once the other changes are applied. Omit it to leave the state as it is. If the automation cannot be enabled, the other changes are kept, it stays inactive and the response is a 422
trigger_dataobjectnoTrigger-level settings for the whole automation: repeatable, repeatable_settings and track_ecommerce
triggersarraynoReplaces the automation's triggers. Each entry takes a type plus the fields that trigger type requires
{
  "name": "Welcome series",
  "trigger_data": {
    "repeatable": false
  }
}

Response

Response code: 200 OK
{
  "data": {
    "id": "203114220633457868",
    "name": "Welcome series",
    "enabled": false,
    "trigger_data": {
      "track_ecommerce": false,
      "broken_workflow": false,
      "complete_workflow": false,
      "repeatable": false,
      "repeatable_settings": {
        "mode": "wait",
        "value": 1,
        "unit": "day"
      },
      "show_analytics": true,
      "valid": false
    },
    "triggers": [],
    "steps": [],
    "complete": false,
    "broken": false,
    "warnings": [],
    "emails_count": 0,
    "stats": {
      "completed_subscribers_count": 0,
      "subscribers_in_queue_count": 0,
      "bounce_rate": {
        "float": 0,
        "string": "0%"
      },
      "click_to_open_rate": {
        "float": 0,
        "string": "0%"
      },
      "sent": 0,
      "opens_count": 0,
      "unique_opens_count": null,
      "open_rate": {
        "float": 0,
        "string": "0%"
      },
      "clicks_count": 0,
      "unique_clicks_count": null,
      "click_rate": {
        "float": 0,
        "string": "0%"
      },
      "unsubscribes_count": 0,
      "unsubscribe_rate": {
        "float": 0,
        "string": "0%"
      },
      "spam_count": 0,
      "spam_rate": {
        "float": 0,
        "string": "0%"
      },
      "hard_bounces_count": 0,
      "hard_bounce_rate": {
        "float": 0,
        "string": "0%"
      },
      "soft_bounces_count": 0,
      "soft_bounce_rate": {
        "float": 0,
        "string": "0%"
      },
      "forward_rate": {
        "float": 0,
        "string": "0%"
      },
      "social_interactions_count": null,
      "social_interaction_rate": {
        "float": 0,
        "string": "0%"
      }
    },
    "created_at": "2026-11-03 11:20:15"
  }
}

Copy an automation

If you want to duplicate an automation use this POST request

POST https://connect.mailerlite.com/api/automations/{automation_id}/copy

The copy is named Copy of <name> and has the same triggers, steps and emails. It is always inactive, whatever the state of the original. The workflow is rebuilt in the background, so the response comes back with building_in_progress: true. Poll the automation until that flag clears before you edit or enable the copy.

Response

Response code: 201 Created
{
  "data": {
    "id": "203114420278133987",
    "name": "Copy of Welcome series",
    "enabled": false,
    "trigger_data": {
      "building_in_progress": true
    },
    "steps": [],
    "complete": false,
    "broken": false,
    "warnings": [],
    "emails_count": 0,
    "stats": {
      "completed_subscribers_count": 0,
      "subscribers_in_queue_count": 0,
      "bounce_rate": {
        "float": 0,
        "string": "0%"
      },
      "click_to_open_rate": {
        "float": 0,
        "string": "0%"
      },
      "sent": null,
      "opens_count": null,
      "unique_opens_count": null,
      "open_rate": {
        "float": 0,
        "string": "0%"
      },
      "clicks_count": null,
      "unique_clicks_count": null,
      "click_rate": {
        "float": 0,
        "string": "0%"
      },
      "unsubscribes_count": null,
      "unsubscribe_rate": {
        "float": 0,
        "string": "0%"
      },
      "spam_count": null,
      "spam_rate": {
        "float": 0,
        "string": "0%"
      },
      "hard_bounces_count": null,
      "hard_bounce_rate": {
        "float": 0,
        "string": "0%"
      },
      "soft_bounces_count": null,
      "soft_bounce_rate": {
        "float": 0,
        "string": "0%"
      },
      "forward_rate": {
        "float": 0,
        "string": "0%"
      },
      "social_interactions_count": null,
      "social_interaction_rate": {
        "float": 0,
        "string": "0%"
      }
    },
    "created_at": "2026-11-03 11:23:25",
    "building_in_progress": true
  }
}

Enable an automation

If you want to activate an automation so its triggers start adding subscribers use this POST request

POST https://connect.mailerlite.com/api/automations/{automation_id}/enable

The whole workflow is checked first. A missing or unconfigured trigger, an incomplete step or an email without content returns a 422 that names what still needs fixing. The automation stays inactive.

Response

Response code: 200 OK
{
  "data": {
    "id": "203114220633457868",
    "name": "Welcome series",
    "enabled": true,
    "trigger_data": {
      "track_ecommerce": false,
      "broken_workflow": false,
      "complete_workflow": true,
      "show_analytics": true,
      "valid": true,
      "repeatable": false,
      "repeatable_settings": {
        "mode": "wait",
        "value": 1,
        "unit": "day"
      }
    },
    "triggers": [
      {
        "id": "203114222968636621",
        "type": "subscriber_joins_group",
        "group_ids": [
          "203105145192450069"
        ],
        "groups": [
          {
            "id": "203105145192450069",
            "name": "Test",
            "url": "https://connect.mailerlite.com/groups/203105145192450069"
          }
        ],
        "exclude_group_ids": [
          "203114217220344581"
        ],
        "excluded_groups": [
          {
            "id": "203114217220344581",
            "name": "Newsletter readers",
            "url": "https://connect.mailerlite.com/groups/203114217220344581"
          }
        ],
        "broken": false,
        "complete": true,
        "exit_when_no_longer_matches": false
      }
    ],
    "steps": [
      {
        "id": "203114227995511577",
        "type": "delay",
        "parent_id": "203114224673622808",
        "unit": "days",
        "complete": true,
        "created_at": "2026-11-03 11:20:22",
        "updated_at": "2026-11-03 11:21:00",
        "value": 3,
        "description": "Wait for 3 days",
        "type_count": null
      }
    ],
    "complete": true,
    "broken": false,
    "warnings": [],
    "emails_count": 3,
    "stats": {
      "completed_subscribers_count": 0,
      "subscribers_in_queue_count": 0,
      "bounce_rate": {
        "float": 0,
        "string": "0%"
      },
      "click_to_open_rate": {
        "float": 0,
        "string": "0%"
      },
      "sent": 0,
      "opens_count": 0,
      "unique_opens_count": null,
      "open_rate": {
        "float": 0,
        "string": "0%"
      },
      "clicks_count": 0,
      "unique_clicks_count": null,
      "click_rate": {
        "float": 0,
        "string": "0%"
      },
      "unsubscribes_count": 0,
      "unsubscribe_rate": {
        "float": 0,
        "string": "0%"
      },
      "spam_count": 0,
      "spam_rate": {
        "float": 0,
        "string": "0%"
      },
      "hard_bounces_count": 0,
      "hard_bounce_rate": {
        "float": 0,
        "string": "0%"
      },
      "soft_bounces_count": 0,
      "soft_bounce_rate": {
        "float": 0,
        "string": "0%"
      },
      "forward_rate": {
        "float": 0,
        "string": "0%"
      },
      "social_interactions_count": null,
      "social_interaction_rate": {
        "float": 0,
        "string": "0%"
      }
    },
    "created_at": "2026-11-03 11:20:15"
  }
}

Disable an automation

If you want to stop an automation from adding new subscribers use this POST request

POST https://connect.mailerlite.com/api/automations/{automation_id}/disable

Subscribers already part-way through the workflow stay in it. To stop their runs as well, use Cancel automation runs.

Response

Response code: 200 OK
{
  "data": {
    "id": "203114220633457868",
    "name": "Welcome series",
    "enabled": false,
    "trigger_data": {
      "track_ecommerce": false,
      "broken_workflow": false,
      "complete_workflow": true,
      "show_analytics": true,
      "valid": true,
      "repeatable": false,
      "repeatable_settings": {
        "mode": "wait",
        "value": 1,
        "unit": "day"
      },
      "test_workflow_in_progress": false
    },
    "triggers": [
      {
        "id": "203114222968636621",
        "type": "subscriber_joins_group",
        "group_ids": [
          "203105145192450069"
        ],
        "groups": [
          {
            "id": "203105145192450069",
            "name": "Test",
            "url": "https://connect.mailerlite.com/groups/203105145192450069"
          }
        ],
        "exclude_group_ids": [
          "203114217220344581"
        ],
        "excluded_groups": [
          {
            "id": "203114217220344581",
            "name": "Newsletter readers",
            "url": "https://connect.mailerlite.com/groups/203114217220344581"
          }
        ],
        "broken": false,
        "complete": true,
        "exit_when_no_longer_matches": false
      }
    ],
    "steps": [
      {
        "id": "203114227995511577",
        "type": "delay",
        "parent_id": "203114224673622808",
        "unit": "days",
        "complete": true,
        "created_at": "2026-11-03 11:20:22",
        "updated_at": "2026-11-03 11:21:00",
        "value": 3,
        "description": "Wait for 3 days",
        "type_count": null
      }
    ],
    "complete": true,
    "broken": false,
    "warnings": [],
    "emails_count": 3,
    "stats": {
      "completed_subscribers_count": 0,
      "subscribers_in_queue_count": 0,
      "bounce_rate": {
        "float": 0,
        "string": "0%"
      },
      "click_to_open_rate": {
        "float": 0,
        "string": "0%"
      },
      "sent": 0,
      "opens_count": 0,
      "unique_opens_count": null,
      "open_rate": {
        "float": 0,
        "string": "0%"
      },
      "clicks_count": 0,
      "unique_clicks_count": null,
      "click_rate": {
        "float": 0,
        "string": "0%"
      },
      "unsubscribes_count": 0,
      "unsubscribe_rate": {
        "float": 0,
        "string": "0%"
      },
      "spam_count": 0,
      "spam_rate": {
        "float": 0,
        "string": "0%"
      },
      "hard_bounces_count": 0,
      "hard_bounce_rate": {
        "float": 0,
        "string": "0%"
      },
      "soft_bounces_count": 0,
      "soft_bounce_rate": {
        "float": 0,
        "string": "0%"
      },
      "forward_rate": {
        "float": 0,
        "string": "0%"
      },
      "social_interactions_count": null,
      "social_interaction_rate": {
        "float": 0,
        "string": "0%"
      }
    },
    "created_at": "2026-11-03 11:20:15"
  }
}

Send a test email

If you want to send the automation's emails to one address to check them use this POST request

POST https://connect.mailerlite.com/api/automations/{automation_id}/test

Every sendable email in the automation goes to the address you give. Delays, conditions and other steps are not simulated. The account must be active and the automation must have at least one email with content. You can send up to 10 test requests per hour.

Request body

ParameterTypeRequiredLimitations
emailstringyesMust be a verified sender or recipient address on the account
{
  "email": "dummy@example.com"
}

Response

The response lists what was sent. queued holds each email step that was sent, with its email ID and subject. skipped holds every other email step, with a reason: not_eligible_for_sending when its sender or settings stop it from sending, or not_designed when its email has no content yet.

Response code: 200 OK
{
  "data": {
    "queued": [
      {
        "step_id": "57444261587584962",
        "email_id": "57444261557176071",
        "subject": "Welcome aboard"
      }
    ],
    "skipped": [
      {
        "step_id": "57444261587584963",
        "subject": "Your first tips",
        "reason": "not_designed"
      }
    ]
  }
}

Add subscribers to an automation

If you want to add subscribers to an active automation use this POST request

POST https://connect.mailerlite.com/api/automations/{automation_id}/add-subscribers

You can add subscribers by email address, by group, or both. Only existing subscribers whose status is active are added. Addresses that don't match one are skipped without an error, and no new subscribers are created. Subscribers are queued in the background, so the response returns before they have all entered the workflow. The automation must be enabled and its workflow must not be broken. Subscribers already in the automation are skipped. If every subscriber in the given groups is already in it, the request returns a 422.

Request body

ParameterTypeRequiredLimitations
emailsarraynoEmail addresses of the subscribers to add, at most 5000. Required unless groups is given
groupsarraynoIDs of the groups whose active subscribers to add, at most 100. Required unless emails is given
step_idintegernoEnter the automation at this step instead of at the beginning
{
  "emails": [
    "ana@example.com",
    "ben@example.com"
  ]
}

Response

Response code: 204 No Content

Re-add subscribers to an automation

If you want to put subscribers who already went through an automation back into it use this POST request

POST https://connect.mailerlite.com/api/automations/{automation_id}/readd

filter[status] selects whose runs to re-add and readd_subscribers_to says where they re-enter the workflow. Subscribers are re-added in the background, so the response returns before they have all re-entered. The automation must be active.

Request body

ParameterTypeRequiredLimitations
readd_subscribers_tostringyesMust be last_completed_step (continue after the last step they finished), last_failed_step (retry the step that failed) or selected_step (re-enter at selected_step_id)
selected_step_idstringnoThe step to re-enter at, by step ID. Required when readd_subscribers_to is selected_step
filterobjectyesSelects which of the automation's past runs to re-add
filter[status]stringyesMust be completed, canceled or failed
filter[id]arraynoRe-add only these run IDs. They must all have the status given in filter[status]
filter[step]numbernoRe-add only runs that stopped at this step, by step ID
filter[search]stringnoRe-add only subscribers whose email address contains this value
filter[date_from]datenoMust be in the format Y-m-d. Re-add only runs that ended on or after this day
filter[date_to]datenoMust be in the format Y-m-d. Re-add only runs that ended on or before this day
{
  "readd_subscribers_to": "last_completed_step",
  "filter": {
    "status": "canceled"
  }
}

Response

Response code: 204 No Content

Copy automation subscribers to groups

If you want to copy the subscribers from an automation's activity into groups use this POST request

POST https://connect.mailerlite.com/api/automations/{automation_id}/activity/add-to-group

This copies the subscribers matched by filter into one or more groups, so you can act on everyone who reached a point in the automation. The subscribers stay in the automation. They are copied in the background, so the response returns before every group is up to date.

Request body

ParameterTypeRequiredLimitations
destination_groupsarrayyesIDs of the groups to copy the matched subscribers into. At least one
filterobjectyesSelects which of the automation's runs to copy subscribers from. Send filter[status] on its own to copy every subscriber with that status
filter[status]stringyesMust be active, completed or canceled
filter[id]arraynoCopy only these run IDs
filter[search]stringnoCopy only runs whose subscriber's email address contains this value
filter[reason]stringnoCopy only canceled runs stopped for this reason
filter[date_from]datenoMust be in the format Y-m-d. Copy only runs last updated on or after this day
filter[date_to]datenoMust be in the format Y-m-d. Copy only runs last updated on or before this day
filter[scheduled_from]datenoMust be in the format Y-m-d. Copy only runs whose next step is scheduled on or after this day
filter[scheduled_to]datenoMust be in the format Y-m-d. Copy only runs whose next step is scheduled on or before this day
filter[next_step]numbernoCopy only runs waiting to enter this step, by step ID
filter[current_step]numbernoCopy only runs currently at this step, by step ID
{
  "destination_groups": [
    "203114217220344581"
  ],
  "filter": {
    "status": "active"
  }
}

Response

Response code: 204 No Content

Cancel automation runs

If you want to stop an automation for some of its subscribers use this POST request

POST https://connect.mailerlite.com/api/automations/{automation_id}/activity/cancel-automation

The subscribers matched by filter get nothing further from the automation. Only active runs can be canceled, so filter[status] must be active. Runs are canceled in the background. Canceling is final. To put a subscriber back into the workflow, re-add them.

Request body

ParameterTypeRequiredLimitations
filterobjectyesSelects which of the automation's runs to act on. Send filter[status] on its own to act on every active run
filter[status]stringyesMust be active. Only runs that are still in progress can be acted on
filter[id]arraynoAct only on these run IDs
filter[search]stringnoAct only on runs whose subscriber's email address contains this value
filter[date_from]datenoMust be in the format Y-m-d. Act only on runs last updated on or after this day
filter[date_to]datenoMust be in the format Y-m-d. Act only on runs last updated on or before this day
filter[scheduled_from]datenoMust be in the format Y-m-d. Act only on runs whose next step is scheduled on or after this day
filter[scheduled_to]datenoMust be in the format Y-m-d. Act only on runs whose next step is scheduled on or before this day
filter[next_step]numbernoAct only on runs waiting to enter this step, by step ID
{
  "filter": {
    "status": "active"
  }
}

Response

Response code: 204 No Content

Skip a delay

If you want to move subscribers past the delay they are waiting in use this POST request

POST https://connect.mailerlite.com/api/automations/{automation_id}/activity/skip-delay

The subscribers matched by filter go straight on to their next step. Only active runs can be skipped, so filter[status] must be active. Delays are skipped in the background. The automation must be active.

Request body

ParameterTypeRequiredLimitations
filterobjectyesSelects which of the automation's runs to act on. Send filter[status] on its own to act on every active run
filter[status]stringyesMust be active. Only runs that are still in progress can be acted on
filter[id]arraynoAct only on these run IDs
filter[search]stringnoAct only on runs whose subscriber's email address contains this value
filter[date_from]datenoMust be in the format Y-m-d. Act only on runs last updated on or after this day
filter[date_to]datenoMust be in the format Y-m-d. Act only on runs last updated on or before this day
filter[scheduled_from]datenoMust be in the format Y-m-d. Act only on runs whose next step is scheduled on or after this day
filter[scheduled_to]datenoMust be in the format Y-m-d. Act only on runs whose next step is scheduled on or before this day
filter[next_step]numbernoAct only on runs waiting to enter this step, by step ID
{
  "filter": {
    "status": "active"
  }
}

Response

Response code: 204 No Content

Delete automation

If you want to delete automation use this DELETE request

DELETE https://connect.mailerlite.com/api/automations/{automation_id}

This deletes the automation and its steps. Subscribers still running through it stop progressing.

Response

Response code: 204 No Content

On this page