Skip to the page

Resume automation

Starts a paused automation again. The people who were held go on from where they stopped.

automations_resume
Needs the scopeautomations:write
Changes data

Arguments

  • idstringRequired

    The id of the item. Up to 64 characters.

Returns

The answer comes back under structuredContent, with the same JSON as text in content. A call the API refuses comes back with isError set, and the code and the message under structuredContent.error. MCP shows how to connect a client.

  • object"automation"

    Always automation.

  • idstring

    The id of the automation.

  • namestring

    The name of the automation.

  • descriptionstring

    A sentence about what it is for. Empty when none was given.

  • statusstring

    draft until it is published, active while people can enter, paused when it is held.

    One ofdraftactivepaused

  • pausedReasonstring | null

    Why it is paused: manual when a person paused it, what stopped working (sender, template, audience or webhook), or limit when the plan has no emails left this month. null while it is not paused.

    One ofmanualsendertemplateaudiencewebhooklimit

  • pausedDetailstring

    More about why it is paused. Empty when a person paused it.

  • triggerobject

    What starts a run, in the copy you edit.

  • trigger.kindstring

    What starts a run: event (an event you send, or a built-in one), schedule (a time that repeats, for everyone in an audience), date (a date on each contact) or manual (only when you enrol someone).

    One ofeventscheduledatemanual

  • trigger.eventstringOptional

    For event: the name of the event, such as order.paid. The built-in names are contact.created, contact.updated, contact.subscribed, contact.unsubscribed, email.delivered, email.opened, email.clicked, email.bounced, email.complained and email.received.

  • trigger.audienceIdstringOptional

    The audience the automation is for. Needed for schedule and date. For event it limits the automation to contacts of that audience. Up to 64 characters.

  • trigger.matchstringOptional

    all when every condition has to hold, any when one is enough. Without it, all.

    One ofallany

  • trigger.conditionsobject[]Optional

    For event: tests the event and the person have to pass to start a run. Up to 10 items.

  • trigger.conditions[].kindstring

    What is tested: data (a value in what started the run), waited (a value in an event a wait step received), contact (a field or a property of the contact), email (what happened to an email this run sent), event (whether the person sent an event), audience (whether they are in an audience), subscribed (whether the contact is subscribed) or group (several tests as one).

    One ofdatawaitedcontactemaileventaudiencesubscribedgroup

  • trigger.conditions[].fieldstringOptional

    For data, waited and contact: the name of the value, such as plan or order.total. A contact has email, first_name, last_name, status and its properties. Up to 120 characters.

  • trigger.conditions[].operatorstringOptional

    For data, waited and contact: how the value is compared. exists and is_empty take no value.

    One ofequalsnot_equalsgreater_thangreater_or_equalless_thanless_or_equalcontainsnot_containsstarts_withends_withexistsis_empty

  • trigger.conditions[].valuestring | number | booleanOptional

    What the value is compared with. Text can hold {{name}} slots, filled from what started the run. Up to 500 characters.

  • trigger.conditions[].stepstringOptional

    For email: the id of the step that sent it.

  • trigger.conditions[].statusstringOptional

    For email: what has to have happened to it: delivered, opened, clicked, bounced or complained.

    One ofdeliveredopenedclickedbouncedcomplained

  • trigger.conditions[].eventstringOptional

    For event and waited: the name of the event.

  • trigger.conditions[].withinDaysintegerOptional

    For event: how many days back to look. Without it, since the run started. From 1 to 365.

  • trigger.conditions[].audienceIdstringOptional

    For audience: the id of the audience. Up to 64 characters.

  • trigger.conditions[].notbooleanOptional

    true turns the test around.

  • trigger.conditions[].matchstringOptional

    For group: all when every test inside has to hold, any when one is enough.

    One ofallany

  • trigger.conditions[].conditionsobject[]Optional

    For group: the tests inside it. Up to 10 items.

  • trigger.conditions[].conditions[].kindstring

    What is tested: data (a value in what started the run), waited (a value in an event a wait step received), contact (a field or a property of the contact), email (what happened to an email this run sent), event (whether the person sent an event), audience (whether they are in an audience), subscribed (whether the contact is subscribed) or group (several tests as one).

    One ofdatawaitedcontactemaileventaudiencesubscribedgroup

  • trigger.conditions[].conditions[].fieldstringOptional

    For data, waited and contact: the name of the value, such as plan or order.total. A contact has email, first_name, last_name, status and its properties. Up to 120 characters.

  • trigger.conditions[].conditions[].operatorstringOptional

    For data, waited and contact: how the value is compared. exists and is_empty take no value.

    One ofequalsnot_equalsgreater_thangreater_or_equalless_thanless_or_equalcontainsnot_containsstarts_withends_withexistsis_empty

  • trigger.conditions[].conditions[].valuestring | number | booleanOptional

    What the value is compared with. Text can hold {{name}} slots, filled from what started the run. Up to 500 characters.

  • trigger.conditions[].conditions[].stepstringOptional

    For email: the id of the step that sent it.

  • trigger.conditions[].conditions[].statusstringOptional

    For email: what has to have happened to it: delivered, opened, clicked, bounced or complained.

    One ofdeliveredopenedclickedbouncedcomplained

  • trigger.conditions[].conditions[].eventstringOptional

    For event and waited: the name of the event.

  • trigger.conditions[].conditions[].withinDaysintegerOptional

    For event: how many days back to look. Without it, since the run started. From 1 to 365.

  • trigger.conditions[].conditions[].audienceIdstringOptional

    For audience: the id of the audience. Up to 64 characters.

  • trigger.conditions[].conditions[].notbooleanOptional

    true turns the test around.

  • trigger.everystringOptional

    For schedule: how often it repeats: day, week or month.

    One ofdayweekmonth

  • trigger.timestringOptional

    For schedule and date: the time of day it starts, as HH:MM in the time zone of the automation.

  • trigger.daysstring[]Optional

    For a weekly schedule: the days it runs on, such as ["mon", "thu"]. Up to 7 items.

    One ofsunmontuewedthufrisat

  • trigger.dayOfMonthintegerOptional

    For a monthly schedule: the day of the month, from 1 to 28.

  • trigger.propertystringOptional

    For date: the contact property that holds the date, such as trial_ends_at.

  • trigger.offsetDaysintegerOptional

    For date: how many days after the date to start. A negative number starts before it. From -365 to 365.

  • trigger.yearlybooleanOptional

    For date: true to start every year on that day, as for a birthday.

  • settingsobject

    The rules of the automation, in the copy you edit.

  • settings.timezonestring

    The time zone its times are read in, such as Europe/London. Up to 120 characters.

  • settings.reentrystring

    Whether a person can go through it again: once (never), after_exit (when they are not in it any more) or always (every time, even while they are in it).

    One ofonceafter_exitalways

  • settings.reentryAfterDaysinteger

    With after_exit: how many days have to pass after a run ends. 0 for none. From 0 to 365.

  • settings.windowobject | null

    The sending hours. An email that is due outside them waits until they open. null sends at any time.

  • settings.window.daysstring[]

    The days emails may go out on, such as ["mon", "fri"]. Up to 7 items.

    One ofsunmontuewedthufrisat

  • settings.window.fromstring

    When the sending hours open, as HH:MM.

  • settings.window.tostring

    When they close, as HH:MM.

  • settings.exitOnstring[]

    Events that take a person out of the automation when they arrive. Up to 10 items.

  • settings.respectUnsubscribesboolean

    true for marketing: an unsubscribed contact does not enter, a run ends when its contact unsubscribes, and emails to contacts carry the unsubscribe link. false for mail that always has to arrive, such as receipts.

  • stepCountinteger

    How many steps the copy you edit has.

  • versioninteger

    The number of the published version. 0 when it was never published.

  • publishedAtstring | null

    When it was last published, or null.

  • changedboolean

    true when the copy you edit differs from the published one.

  • statsobject

    What its runs have done so far.

  • stats.enteredinteger

    How many runs have started.

  • stats.activeinteger

    How many runs are going on now.

  • stats.completedinteger

    How many runs reached the end of their path.

  • stats.exitedinteger

    How many runs left early.

  • stats.failedinteger

    How many runs ended on a step that failed.

  • stats.canceledinteger

    How many runs were cancelled.

  • stats.sentinteger

    How many emails its runs sent.

  • stats.lastRunAtstring | null

    When a run last started, or null.

  • createdAtstring

    When the automation was made.

  • updatedAtstring

    When it was last changed.

  • stepsobject[]

    The steps of the copy you edit. The first one is where a run starts.

  • steps[].idstring

    An id for the step, unique in the flow: letters, digits and underscores, starting with a letter.

  • steps[].kindstring

    What the step does: send_email, delay, wait_until, wait_for_event, condition, branch, split, update_contact, delete_contact, add_to_audience, remove_from_audience, webhook, send_event or exit.

    One ofsend_emaildelaywait_untilwait_for_eventconditionbranchsplitupdate_contactdelete_contactadd_to_audienceremove_from_audiencewebhooksend_eventexit

  • steps[].namestringOptional

    A name of your own for the step. Up to 120 characters.

  • steps[].nextstring | nullOptional

    The id of the step that follows, or null to end the run here. Without it the step after this one in the list follows.

  • steps[].yesstring | nullOptional

    For condition, split and wait_for_event: the step that follows when the condition holds, the person lands in the first share, or the event arrives. null ends the run.

  • steps[].nostring | nullOptional

    For condition, split and wait_for_event: the step that follows otherwise. For branch: the step that follows when no path holds. null ends the run.

  • steps[].fromstringOptional

    For send_email: the sender, on a verified domain, such as Acme <hello@mail.example.com>. With a template that has a sender it can be left out. Up to 500 characters.

  • steps[].tostringOptional

    For send_email: another recipient than the person of the run, such as a team address. Up to 500 characters.

  • steps[].replyTostringOptional

    For send_email: the address replies go to. Without it, the one of the template when it has one, then the default of the workspace. Up to 500 characters.

  • steps[].subjectstringOptional

    For send_email: the subject line. {{name}} slots are filled in. Up to 500 characters.

  • steps[].htmlstringOptional

    For send_email: the message as HTML. {{name}} slots are filled in. Up to 200,000 characters.

  • steps[].textstringOptional

    For send_email: the message as plain text. With a template it replaces the plain text of the template. Up to 200,000 characters.

  • steps[].templatestringOptional

    For send_email: the id or the alias of a published template, in place of subject, html and text. Up to 500 characters.

  • steps[].variablesRecord<string, string>Optional

    For send_email: values for {{name}} slots, by name. A value can hold slots of its own. A slot with no value takes the default of the template.

  • steps[].amountintegerOptional

    For delay: how long to wait. For wait_for_event: how long to wait for the event before the no path is taken. For wait_until with a date: how long before or after the date to go on. From 1 to 525,600.

  • steps[].unitstringOptional

    The unit of amount: minutes, hours, days or weeks.

    One ofminuteshoursdaysweeks

  • steps[].timestringOptional

    For wait_until: the time of day to go on at, as HH:MM in the time zone of the automation. With a date that has no time, the time on that day.

  • steps[].datestringOptional

    For wait_until: a date to wait for, in place of a time of day. An ISO 8601 date or time such as 2026-12-24 or 2026-12-24T18:00:00Z, a Unix time, or a slot that holds one, such as {{starts_at}}. A date that has passed lets the run go on at once. Up to 500 characters.

  • steps[].beforebooleanOptional

    For wait_until with a date and an amount: true to go on that long before the date, such as a day before. Without it, that long after.

  • steps[].daysstring[]Optional

    For wait_until: the days of the week it may go on, such as ["mon", "tue"]. Without it, any day. Up to 7 items.

    One ofsunmontuewedthufrisat

  • steps[].eventstringOptional

    For wait_for_event: the name of the event to wait for. For send_event: the name of the event to send, one of your own.

  • steps[].matchstringOptional

    all when every condition has to hold, any when one is enough. Without it, all.

    One ofallany

  • steps[].conditionsobject[]Optional

    For condition: the tests. For wait_for_event: tests the event has to pass, where data reads the event that arrives. Up to 10 items.

  • steps[].conditions[].kindstring

    What is tested: data (a value in what started the run), waited (a value in an event a wait step received), contact (a field or a property of the contact), email (what happened to an email this run sent), event (whether the person sent an event), audience (whether they are in an audience), subscribed (whether the contact is subscribed) or group (several tests as one).

    One ofdatawaitedcontactemaileventaudiencesubscribedgroup

  • steps[].conditions[].fieldstringOptional

    For data, waited and contact: the name of the value, such as plan or order.total. A contact has email, first_name, last_name, status and its properties. Up to 120 characters.

  • steps[].conditions[].operatorstringOptional

    For data, waited and contact: how the value is compared. exists and is_empty take no value.

    One ofequalsnot_equalsgreater_thangreater_or_equalless_thanless_or_equalcontainsnot_containsstarts_withends_withexistsis_empty

  • steps[].conditions[].valuestring | number | booleanOptional

    What the value is compared with. Text can hold {{name}} slots, filled from what started the run. Up to 500 characters.

  • steps[].conditions[].stepstringOptional

    For email: the id of the step that sent it.

  • steps[].conditions[].statusstringOptional

    For email: what has to have happened to it: delivered, opened, clicked, bounced or complained.

    One ofdeliveredopenedclickedbouncedcomplained

  • steps[].conditions[].eventstringOptional

    For event and waited: the name of the event.

  • steps[].conditions[].withinDaysintegerOptional

    For event: how many days back to look. Without it, since the run started. From 1 to 365.

  • steps[].conditions[].audienceIdstringOptional

    For audience: the id of the audience. Up to 64 characters.

  • steps[].conditions[].notbooleanOptional

    true turns the test around.

  • steps[].conditions[].matchstringOptional

    For group: all when every test inside has to hold, any when one is enough.

    One ofallany

  • steps[].conditions[].conditionsobject[]Optional

    For group: the tests inside it. Up to 10 items.

  • steps[].conditions[].conditions[].kindstring

    What is tested: data (a value in what started the run), waited (a value in an event a wait step received), contact (a field or a property of the contact), email (what happened to an email this run sent), event (whether the person sent an event), audience (whether they are in an audience), subscribed (whether the contact is subscribed) or group (several tests as one).

    One ofdatawaitedcontactemaileventaudiencesubscribedgroup

  • steps[].conditions[].conditions[].fieldstringOptional

    For data, waited and contact: the name of the value, such as plan or order.total. A contact has email, first_name, last_name, status and its properties. Up to 120 characters.

  • steps[].conditions[].conditions[].operatorstringOptional

    For data, waited and contact: how the value is compared. exists and is_empty take no value.

    One ofequalsnot_equalsgreater_thangreater_or_equalless_thanless_or_equalcontainsnot_containsstarts_withends_withexistsis_empty

  • steps[].conditions[].conditions[].valuestring | number | booleanOptional

    What the value is compared with. Text can hold {{name}} slots, filled from what started the run. Up to 500 characters.

  • steps[].conditions[].conditions[].stepstringOptional

    For email: the id of the step that sent it.

  • steps[].conditions[].conditions[].statusstringOptional

    For email: what has to have happened to it: delivered, opened, clicked, bounced or complained.

    One ofdeliveredopenedclickedbouncedcomplained

  • steps[].conditions[].conditions[].eventstringOptional

    For event and waited: the name of the event.

  • steps[].conditions[].conditions[].withinDaysintegerOptional

    For event: how many days back to look. Without it, since the run started. From 1 to 365.

  • steps[].conditions[].conditions[].audienceIdstringOptional

    For audience: the id of the audience. Up to 64 characters.

  • steps[].conditions[].conditions[].notbooleanOptional

    true turns the test around.

  • steps[].branchesobject[]Optional

    For branch: two to eight paths, tested in order. A run takes the first one whose conditions hold, and the no path when none does. Up to 8 items.

  • steps[].branches[].namestring

    What the path is called. It shows on the canvas and in the run. Up to 120 characters.

  • steps[].branches[].matchstringOptional

    all when every condition has to hold, any when one is enough. Without it, all.

    One ofallany

  • steps[].branches[].conditionsobject[]Optional

    The tests a run has to pass to take this path, as on a condition step. Up to 10 items.

  • steps[].branches[].conditions[].kindstring

    What is tested: data (a value in what started the run), waited (a value in an event a wait step received), contact (a field or a property of the contact), email (what happened to an email this run sent), event (whether the person sent an event), audience (whether they are in an audience), subscribed (whether the contact is subscribed) or group (several tests as one).

    One ofdatawaitedcontactemaileventaudiencesubscribedgroup

  • steps[].branches[].conditions[].fieldstringOptional

    For data, waited and contact: the name of the value, such as plan or order.total. A contact has email, first_name, last_name, status and its properties. Up to 120 characters.

  • steps[].branches[].conditions[].operatorstringOptional

    For data, waited and contact: how the value is compared. exists and is_empty take no value.

    One ofequalsnot_equalsgreater_thangreater_or_equalless_thanless_or_equalcontainsnot_containsstarts_withends_withexistsis_empty

  • steps[].branches[].conditions[].valuestring | number | booleanOptional

    What the value is compared with. Text can hold {{name}} slots, filled from what started the run. Up to 500 characters.

  • steps[].branches[].conditions[].stepstringOptional

    For email: the id of the step that sent it.

  • steps[].branches[].conditions[].statusstringOptional

    For email: what has to have happened to it: delivered, opened, clicked, bounced or complained.

    One ofdeliveredopenedclickedbouncedcomplained

  • steps[].branches[].conditions[].eventstringOptional

    For event and waited: the name of the event.

  • steps[].branches[].conditions[].withinDaysintegerOptional

    For event: how many days back to look. Without it, since the run started. From 1 to 365.

  • steps[].branches[].conditions[].audienceIdstringOptional

    For audience: the id of the audience. Up to 64 characters.

  • steps[].branches[].conditions[].notbooleanOptional

    true turns the test around.

  • steps[].branches[].conditions[].matchstringOptional

    For group: all when every test inside has to hold, any when one is enough.

    One ofallany

  • steps[].branches[].conditions[].conditionsobject[]Optional

    For group: the tests inside it. Up to 10 items.

  • steps[].branches[].conditions[].conditions[].kindstring

    What is tested: data (a value in what started the run), waited (a value in an event a wait step received), contact (a field or a property of the contact), email (what happened to an email this run sent), event (whether the person sent an event), audience (whether they are in an audience), subscribed (whether the contact is subscribed) or group (several tests as one).

    One ofdatawaitedcontactemaileventaudiencesubscribedgroup

  • steps[].branches[].conditions[].conditions[].fieldstringOptional

    For data, waited and contact: the name of the value, such as plan or order.total. A contact has email, first_name, last_name, status and its properties. Up to 120 characters.

  • steps[].branches[].conditions[].conditions[].operatorstringOptional

    For data, waited and contact: how the value is compared. exists and is_empty take no value.

    One ofequalsnot_equalsgreater_thangreater_or_equalless_thanless_or_equalcontainsnot_containsstarts_withends_withexistsis_empty

  • steps[].branches[].conditions[].conditions[].valuestring | number | booleanOptional

    What the value is compared with. Text can hold {{name}} slots, filled from what started the run. Up to 500 characters.

  • steps[].branches[].conditions[].conditions[].stepstringOptional

    For email: the id of the step that sent it.

  • steps[].branches[].conditions[].conditions[].statusstringOptional

    For email: what has to have happened to it: delivered, opened, clicked, bounced or complained.

    One ofdeliveredopenedclickedbouncedcomplained

  • steps[].branches[].conditions[].conditions[].eventstringOptional

    For event and waited: the name of the event.

  • steps[].branches[].conditions[].conditions[].withinDaysintegerOptional

    For event: how many days back to look. Without it, since the run started. From 1 to 365.

  • steps[].branches[].conditions[].conditions[].audienceIdstringOptional

    For audience: the id of the audience. Up to 64 characters.

  • steps[].branches[].conditions[].conditions[].notbooleanOptional

    true turns the test around.

  • steps[].branches[].tostring | nullOptional

    The id of the step that follows when this path is taken. null ends the run.

  • steps[].percentintegerOptional

    For split: the share of people, in percent, who take the yes path. From 1 to 99.

  • steps[].firstNamestringOptional

    For update_contact: a new first name. Up to 120 characters.

  • steps[].lastNamestringOptional

    For update_contact: a new last name. Up to 120 characters.

  • steps[].propertiesRecord<string, string | number | boolean | null>Optional

    For update_contact: properties to set, by name. null removes one. Text can hold {{name}} slots.

  • steps[].subscriptionstringOptional

    For update_contact: subscribed or unsubscribed.

    One ofsubscribedunsubscribed

  • steps[].audienceIdstringOptional

    For add_to_audience and remove_from_audience: the id of the audience. Up to 64 characters.

  • steps[].webhookIdstringOptional

    For webhook: the id of the webhook that gets an automation.step event. Up to 64 characters.

  • steps[].dataRecord<string, string | number | boolean>Optional

    For send_event: values that go with the event, by name. Text can hold {{name}} slots.

  • problemsobject[]

    What is missing or wrong in the copy you edit.

  • problems[].codestring

    What kind of problem it is: missing, invalid, unknown_step, unreachable, loop or empty.

    One ofmissinginvalidunknown_stepunreachableloopempty

  • problems[].stepstring | null

    The id of the step it is about, or null for the trigger and the settings.

  • problems[].fieldstring

    The field it is about, such as subject or trigger.event.

  • problems[].messagestring

    The problem in words.

  • problems[].blockingboolean

    true when it has to be fixed before the automation can be published.

  • stepStatsobject[]

    What happened at each step, by step id.

  • stepStats[].idstring

    The id of the step.

  • stepStats[].enteredinteger

    How many runs got to this step.

  • stepStats[].hereinteger

    How many runs are waiting at this step now.

  • stepStats[].doneinteger

    How many runs went past it.

  • stepStats[].failedinteger

    How many runs failed on it.

  • stepStats[].skippedinteger

    How many runs skipped it.

  • stepStats[].sentinteger

    How many emails it sent.

  • stepStats[].deliveredinteger

    How many of those were delivered.

  • stepStats[].openedinteger

    How many were opened.

  • stepStats[].clickedinteger

    How many had a link clicked.

  • stepStats[].bouncedinteger

    How many bounced.

  • stepStats[].complainedinteger

    How many were marked as spam.

  • stepStats[].yesinteger

    How many runs took its yes path.

  • stepStats[].nointeger

    How many runs took its no path.