Resume automation
Starts a paused automation again. The people who were held go on from where they stopped.
opensend automations resume <id>Flags
<id>stringRequiredThe id of the item. Up to 64 characters.
Returns
The command prints the answer: as JSON when its output goes to a file or another program, and as a table or a list of fields in a terminal. When the API refuses, the error goes to the error stream and the command ends with a code that names the failure. Output and scripts lists the codes.
object"automation"Always
automation.idstringThe id of the automation.
namestringThe name of the automation.
descriptionstringA sentence about what it is for. Empty when none was given.
statusstringdraftuntil it is published,activewhile people can enter,pausedwhen it is held.One of
draftactivepausedpausedReasonstring | nullWhy it is paused:
manualwhen a person paused it, what stopped working (sender,template,audienceorwebhook), orlimitwhen the plan has no emails left this month.nullwhile it is not paused.One of
manualsendertemplateaudiencewebhooklimitpausedDetailstringMore about why it is paused. Empty when a person paused it.
triggerobjectWhat starts a run, in the copy you edit.
trigger.kindstringWhat 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) ormanual(only when you enrol someone).One of
eventscheduledatemanualtrigger.eventstringOptionalFor
event: the name of the event, such asorder.paid. The built-in names arecontact.created,contact.updated,contact.subscribed,contact.unsubscribed,email.delivered,email.opened,email.clicked,email.bounced,email.complainedandemail.received.trigger.audienceIdstringOptionalThe audience the automation is for. Needed for
scheduleanddate. Foreventit limits the automation to contacts of that audience. Up to 64 characters.trigger.matchstringOptionalallwhen every condition has to hold,anywhen one is enough. Without it, all.One of
allanytrigger.conditionsobject[]OptionalFor
event: tests the event and the person have to pass to start a run. Up to 10 items.trigger.conditions[].kindstringWhat 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) orgroup(several tests as one).One of
datawaitedcontactemaileventaudiencesubscribedgrouptrigger.conditions[].fieldstringOptionalFor
data,waitedandcontact: the name of the value, such asplanororder.total. A contact hasemail,first_name,last_name,statusand its properties. Up to 120 characters.trigger.conditions[].operatorstringOptionalFor
data,waitedandcontact: how the value is compared.existsandis_emptytake novalue.One of
equalsnot_equalsgreater_thangreater_or_equalless_thanless_or_equalcontainsnot_containsstarts_withends_withexistsis_emptytrigger.conditions[].valuestring | number | booleanOptionalWhat the value is compared with. Text can hold
{{name}}slots, filled from what started the run. Up to 500 characters.trigger.conditions[].stepstringOptionalFor
email: the id of the step that sent it.trigger.conditions[].statusstringOptionalFor
email: what has to have happened to it:delivered,opened,clicked,bouncedorcomplained.One of
deliveredopenedclickedbouncedcomplainedtrigger.conditions[].eventstringOptionalFor
eventandwaited: the name of the event.trigger.conditions[].withinDaysintegerOptionalFor
event: how many days back to look. Without it, since the run started. From 1 to 365.trigger.conditions[].audienceIdstringOptionalFor
audience: the id of the audience. Up to 64 characters.trigger.conditions[].notbooleanOptionaltrueturns the test around.trigger.conditions[].matchstringOptionalFor
group:allwhen every test inside has to hold,anywhen one is enough.One of
allanytrigger.conditions[].conditionsobject[]OptionalFor
group: the tests inside it. Up to 10 items.trigger.conditions[].conditions[].kindstringWhat 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) orgroup(several tests as one).One of
datawaitedcontactemaileventaudiencesubscribedgrouptrigger.conditions[].conditions[].fieldstringOptionalFor
data,waitedandcontact: the name of the value, such asplanororder.total. A contact hasemail,first_name,last_name,statusand its properties. Up to 120 characters.trigger.conditions[].conditions[].operatorstringOptionalFor
data,waitedandcontact: how the value is compared.existsandis_emptytake novalue.One of
equalsnot_equalsgreater_thangreater_or_equalless_thanless_or_equalcontainsnot_containsstarts_withends_withexistsis_emptytrigger.conditions[].conditions[].valuestring | number | booleanOptionalWhat the value is compared with. Text can hold
{{name}}slots, filled from what started the run. Up to 500 characters.trigger.conditions[].conditions[].stepstringOptionalFor
email: the id of the step that sent it.trigger.conditions[].conditions[].statusstringOptionalFor
email: what has to have happened to it:delivered,opened,clicked,bouncedorcomplained.One of
deliveredopenedclickedbouncedcomplainedtrigger.conditions[].conditions[].eventstringOptionalFor
eventandwaited: the name of the event.trigger.conditions[].conditions[].withinDaysintegerOptionalFor
event: how many days back to look. Without it, since the run started. From 1 to 365.trigger.conditions[].conditions[].audienceIdstringOptionalFor
audience: the id of the audience. Up to 64 characters.trigger.conditions[].conditions[].notbooleanOptionaltrueturns the test around.trigger.everystringOptionalFor
schedule: how often it repeats:day,weekormonth.One of
dayweekmonthtrigger.timestringOptionalFor
scheduleanddate: the time of day it starts, asHH:MMin the time zone of the automation.trigger.daysstring[]OptionalFor a weekly
schedule: the days it runs on, such as["mon", "thu"]. Up to 7 items.One of
sunmontuewedthufrisattrigger.dayOfMonthintegerOptionalFor a monthly
schedule: the day of the month, from 1 to 28.trigger.propertystringOptionalFor
date: the contact property that holds the date, such astrial_ends_at.trigger.offsetDaysintegerOptionalFor
date: how many days after the date to start. A negative number starts before it. From -365 to 365.trigger.yearlybooleanOptionalFor
date:trueto start every year on that day, as for a birthday.settingsobjectThe rules of the automation, in the copy you edit.
settings.timezonestringThe time zone its times are read in, such as
Europe/London. Up to 120 characters.settings.reentrystringWhether a person can go through it again:
once(never),after_exit(when they are not in it any more) oralways(every time, even while they are in it).One of
onceafter_exitalwayssettings.reentryAfterDaysintegerWith
after_exit: how many days have to pass after a run ends. 0 for none. From 0 to 365.settings.windowobject | nullThe sending hours. An email that is due outside them waits until they open.
nullsends at any time.settings.window.daysstring[]The days emails may go out on, such as
["mon", "fri"]. Up to 7 items.One of
sunmontuewedthufrisatsettings.window.fromstringWhen the sending hours open, as
HH:MM.settings.window.tostringWhen they close, as
HH:MM.settings.exitOnstring[]Events that take a person out of the automation when they arrive. Up to 10 items.
settings.respectUnsubscribesbooleantruefor marketing: an unsubscribed contact does not enter, a run ends when its contact unsubscribes, and emails to contacts carry the unsubscribe link.falsefor mail that always has to arrive, such as receipts.stepCountintegerHow many steps the copy you edit has.
versionintegerThe number of the published version. 0 when it was never published.
publishedAtstring | nullWhen it was last published, or
null.changedbooleantruewhen the copy you edit differs from the published one.statsobjectWhat its runs have done so far.
stats.enteredintegerHow many runs have started.
stats.activeintegerHow many runs are going on now.
stats.completedintegerHow many runs reached the end of their path.
stats.exitedintegerHow many runs left early.
stats.failedintegerHow many runs ended on a step that failed.
stats.canceledintegerHow many runs were cancelled.
stats.sentintegerHow many emails its runs sent.
stats.lastRunAtstring | nullWhen a run last started, or
null.createdAtstringWhen the automation was made.
updatedAtstringWhen it was last changed.
stepsobject[]The steps of the copy you edit. The first one is where a run starts.
steps[].idstringAn id for the step, unique in the flow: letters, digits and underscores, starting with a letter.
steps[].kindstringWhat 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_eventorexit.One of
send_emaildelaywait_untilwait_for_eventconditionbranchsplitupdate_contactdelete_contactadd_to_audienceremove_from_audiencewebhooksend_eventexitsteps[].namestringOptionalA name of your own for the step. Up to 120 characters.
steps[].nextstring | nullOptionalThe id of the step that follows, or
nullto end the run here. Without it the step after this one in the list follows.steps[].yesstring | nullOptionalFor
condition,splitandwait_for_event: the step that follows when the condition holds, the person lands in the first share, or the event arrives.nullends the run.steps[].nostring | nullOptionalFor
condition,splitandwait_for_event: the step that follows otherwise. Forbranch: the step that follows when no path holds.nullends the run.steps[].fromstringOptionalFor
send_email: the sender, on a verified domain, such asAcme <hello@mail.example.com>. With a template that has a sender it can be left out. Up to 500 characters.steps[].tostringOptionalFor
send_email: another recipient than the person of the run, such as a team address. Up to 500 characters.steps[].replyTostringOptionalFor
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[].subjectstringOptionalFor
send_email: the subject line.{{name}}slots are filled in. Up to 500 characters.steps[].htmlstringOptionalFor
send_email: the message as HTML.{{name}}slots are filled in. Up to 200,000 characters.steps[].textstringOptionalFor
send_email: the message as plain text. With a template it replaces the plain text of the template. Up to 200,000 characters.steps[].templatestringOptionalFor
send_email: the id or the alias of a published template, in place ofsubject,htmlandtext. Up to 500 characters.steps[].variablesRecord<string, string>OptionalFor
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[].amountintegerOptionalFor
delay: how long to wait. Forwait_for_event: how long to wait for the event before thenopath is taken. Forwait_untilwith adate: how long before or after the date to go on. From 1 to 525,600.steps[].unitstringOptionalThe unit of
amount:minutes,hours,daysorweeks.One of
minuteshoursdaysweekssteps[].timestringOptionalFor
wait_until: the time of day to go on at, asHH:MMin the time zone of the automation. With adatethat has no time, the time on that day.steps[].datestringOptionalFor
wait_until: a date to wait for, in place of a time of day. An ISO 8601 date or time such as2026-12-24or2026-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[].beforebooleanOptionalFor
wait_untilwith adateand anamount:trueto go on that long before the date, such as a day before. Without it, that long after.steps[].daysstring[]OptionalFor
wait_until: the days of the week it may go on, such as["mon", "tue"]. Without it, any day. Up to 7 items.One of
sunmontuewedthufrisatsteps[].eventstringOptionalFor
wait_for_event: the name of the event to wait for. Forsend_event: the name of the event to send, one of your own.steps[].matchstringOptionalallwhen every condition has to hold,anywhen one is enough. Without it, all.One of
allanysteps[].conditionsobject[]OptionalFor
condition: the tests. Forwait_for_event: tests the event has to pass, wheredatareads the event that arrives. Up to 10 items.steps[].conditions[].kindstringWhat 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) orgroup(several tests as one).One of
datawaitedcontactemaileventaudiencesubscribedgroupsteps[].conditions[].fieldstringOptionalFor
data,waitedandcontact: the name of the value, such asplanororder.total. A contact hasemail,first_name,last_name,statusand its properties. Up to 120 characters.steps[].conditions[].operatorstringOptionalFor
data,waitedandcontact: how the value is compared.existsandis_emptytake novalue.One of
equalsnot_equalsgreater_thangreater_or_equalless_thanless_or_equalcontainsnot_containsstarts_withends_withexistsis_emptysteps[].conditions[].valuestring | number | booleanOptionalWhat the value is compared with. Text can hold
{{name}}slots, filled from what started the run. Up to 500 characters.steps[].conditions[].stepstringOptionalFor
email: the id of the step that sent it.steps[].conditions[].statusstringOptionalFor
email: what has to have happened to it:delivered,opened,clicked,bouncedorcomplained.One of
deliveredopenedclickedbouncedcomplainedsteps[].conditions[].eventstringOptionalFor
eventandwaited: the name of the event.steps[].conditions[].withinDaysintegerOptionalFor
event: how many days back to look. Without it, since the run started. From 1 to 365.steps[].conditions[].audienceIdstringOptionalFor
audience: the id of the audience. Up to 64 characters.steps[].conditions[].notbooleanOptionaltrueturns the test around.steps[].conditions[].matchstringOptionalFor
group:allwhen every test inside has to hold,anywhen one is enough.One of
allanysteps[].conditions[].conditionsobject[]OptionalFor
group: the tests inside it. Up to 10 items.steps[].conditions[].conditions[].kindstringWhat 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) orgroup(several tests as one).One of
datawaitedcontactemaileventaudiencesubscribedgroupsteps[].conditions[].conditions[].fieldstringOptionalFor
data,waitedandcontact: the name of the value, such asplanororder.total. A contact hasemail,first_name,last_name,statusand its properties. Up to 120 characters.steps[].conditions[].conditions[].operatorstringOptionalFor
data,waitedandcontact: how the value is compared.existsandis_emptytake novalue.One of
equalsnot_equalsgreater_thangreater_or_equalless_thanless_or_equalcontainsnot_containsstarts_withends_withexistsis_emptysteps[].conditions[].conditions[].valuestring | number | booleanOptionalWhat the value is compared with. Text can hold
{{name}}slots, filled from what started the run. Up to 500 characters.steps[].conditions[].conditions[].stepstringOptionalFor
email: the id of the step that sent it.steps[].conditions[].conditions[].statusstringOptionalFor
email: what has to have happened to it:delivered,opened,clicked,bouncedorcomplained.One of
deliveredopenedclickedbouncedcomplainedsteps[].conditions[].conditions[].eventstringOptionalFor
eventandwaited: the name of the event.steps[].conditions[].conditions[].withinDaysintegerOptionalFor
event: how many days back to look. Without it, since the run started. From 1 to 365.steps[].conditions[].conditions[].audienceIdstringOptionalFor
audience: the id of the audience. Up to 64 characters.steps[].conditions[].conditions[].notbooleanOptionaltrueturns the test around.steps[].branchesobject[]OptionalFor
branch: two to eight paths, tested in order. A run takes the first one whose conditions hold, and thenopath when none does. Up to 8 items.steps[].branches[].namestringWhat the path is called. It shows on the canvas and in the run. Up to 120 characters.
steps[].branches[].matchstringOptionalallwhen every condition has to hold,anywhen one is enough. Without it, all.One of
allanysteps[].branches[].conditionsobject[]OptionalThe tests a run has to pass to take this path, as on a
conditionstep. Up to 10 items.steps[].branches[].conditions[].kindstringWhat 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) orgroup(several tests as one).One of
datawaitedcontactemaileventaudiencesubscribedgroupsteps[].branches[].conditions[].fieldstringOptionalFor
data,waitedandcontact: the name of the value, such asplanororder.total. A contact hasemail,first_name,last_name,statusand its properties. Up to 120 characters.steps[].branches[].conditions[].operatorstringOptionalFor
data,waitedandcontact: how the value is compared.existsandis_emptytake novalue.One of
equalsnot_equalsgreater_thangreater_or_equalless_thanless_or_equalcontainsnot_containsstarts_withends_withexistsis_emptysteps[].branches[].conditions[].valuestring | number | booleanOptionalWhat the value is compared with. Text can hold
{{name}}slots, filled from what started the run. Up to 500 characters.steps[].branches[].conditions[].stepstringOptionalFor
email: the id of the step that sent it.steps[].branches[].conditions[].statusstringOptionalFor
email: what has to have happened to it:delivered,opened,clicked,bouncedorcomplained.One of
deliveredopenedclickedbouncedcomplainedsteps[].branches[].conditions[].eventstringOptionalFor
eventandwaited: the name of the event.steps[].branches[].conditions[].withinDaysintegerOptionalFor
event: how many days back to look. Without it, since the run started. From 1 to 365.steps[].branches[].conditions[].audienceIdstringOptionalFor
audience: the id of the audience. Up to 64 characters.steps[].branches[].conditions[].notbooleanOptionaltrueturns the test around.steps[].branches[].conditions[].matchstringOptionalFor
group:allwhen every test inside has to hold,anywhen one is enough.One of
allanysteps[].branches[].conditions[].conditionsobject[]OptionalFor
group: the tests inside it. Up to 10 items.steps[].branches[].conditions[].conditions[].kindstringWhat 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) orgroup(several tests as one).One of
datawaitedcontactemaileventaudiencesubscribedgroupsteps[].branches[].conditions[].conditions[].fieldstringOptionalFor
data,waitedandcontact: the name of the value, such asplanororder.total. A contact hasemail,first_name,last_name,statusand its properties. Up to 120 characters.steps[].branches[].conditions[].conditions[].operatorstringOptionalFor
data,waitedandcontact: how the value is compared.existsandis_emptytake novalue.One of
equalsnot_equalsgreater_thangreater_or_equalless_thanless_or_equalcontainsnot_containsstarts_withends_withexistsis_emptysteps[].branches[].conditions[].conditions[].valuestring | number | booleanOptionalWhat the value is compared with. Text can hold
{{name}}slots, filled from what started the run. Up to 500 characters.steps[].branches[].conditions[].conditions[].stepstringOptionalFor
email: the id of the step that sent it.steps[].branches[].conditions[].conditions[].statusstringOptionalFor
email: what has to have happened to it:delivered,opened,clicked,bouncedorcomplained.One of
deliveredopenedclickedbouncedcomplainedsteps[].branches[].conditions[].conditions[].eventstringOptionalFor
eventandwaited: the name of the event.steps[].branches[].conditions[].conditions[].withinDaysintegerOptionalFor
event: how many days back to look. Without it, since the run started. From 1 to 365.steps[].branches[].conditions[].conditions[].audienceIdstringOptionalFor
audience: the id of the audience. Up to 64 characters.steps[].branches[].conditions[].conditions[].notbooleanOptionaltrueturns the test around.steps[].branches[].tostring | nullOptionalThe id of the step that follows when this path is taken.
nullends the run.steps[].percentintegerOptionalFor
split: the share of people, in percent, who take theyespath. From 1 to 99.steps[].firstNamestringOptionalFor
update_contact: a new first name. Up to 120 characters.steps[].lastNamestringOptionalFor
update_contact: a new last name. Up to 120 characters.steps[].propertiesRecord<string, string | number | boolean | null>OptionalFor
update_contact: properties to set, by name.nullremoves one. Text can hold{{name}}slots.steps[].subscriptionstringOptionalFor
update_contact:subscribedorunsubscribed.One of
subscribedunsubscribedsteps[].audienceIdstringOptionalFor
add_to_audienceandremove_from_audience: the id of the audience. Up to 64 characters.steps[].webhookIdstringOptionalFor
webhook: the id of the webhook that gets anautomation.stepevent. Up to 64 characters.steps[].dataRecord<string, string | number | boolean>OptionalFor
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[].codestringWhat kind of problem it is:
missing,invalid,unknown_step,unreachable,looporempty.One of
missinginvalidunknown_stepunreachableloopemptyproblems[].stepstring | nullThe id of the step it is about, or
nullfor the trigger and the settings.problems[].fieldstringThe field it is about, such as
subjectortrigger.event.problems[].messagestringThe problem in words.
problems[].blockingbooleantruewhen it has to be fixed before the automation can be published.stepStatsobject[]What happened at each step, by step id.
stepStats[].idstringThe id of the step.
stepStats[].enteredintegerHow many runs got to this step.
stepStats[].hereintegerHow many runs are waiting at this step now.
stepStats[].doneintegerHow many runs went past it.
stepStats[].failedintegerHow many runs failed on it.
stepStats[].skippedintegerHow many runs skipped it.
stepStats[].sentintegerHow many emails it sent.
stepStats[].deliveredintegerHow many of those were delivered.
stepStats[].openedintegerHow many were opened.
stepStats[].clickedintegerHow many had a link clicked.
stepStats[].bouncedintegerHow many bounced.
stepStats[].complainedintegerHow many were marked as spam.
stepStats[].yesintegerHow many runs took its
yespath.stepStats[].nointegerHow many runs took its
nopath.