List automations
The automations of the workspace, newest first, by status and search, each with what its runs have done.
opensend.automations.list(input?)opensend automations listInput
qstringText to search for. Only items that contain it are returned. Up to 40 characters.
limitintegerHow many items to return, from 1 to 100. Without it you get 25.
offsetintegerHow many items to skip. Use it with
limitto read the next page. Default:0.afterstringThe id of the last item you have. The answer starts with the item that follows it, which reads a long list without skipping or repeating when it changes meanwhile. Up to 64 characters.
beforestringThe id of the first item you have. The answer ends with the item just before it. Give this or
after, not both. Up to 64 characters.statusstringOnly automations in this state:
draft,activeorpaused.One of
draftactivepaused
Returns
The call resolves to the answer, already parsed. A call the API refuses throws OpenSendError with the code and the message of the answer. SDK lists the errors of the client itself.
object"list"Always
list.dataobject[]The items on this page.
data[].object"automation"Always
automation.data[].idstringThe id of the automation.
data[].namestringThe name of the automation.
data[].descriptionstringA sentence about what it is for. Empty when none was given.
data[].statusstringdraftuntil it is published,activewhile people can enter,pausedwhen it is held.One of
draftactivepauseddata[].pausedReasonstring | 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
manualsendertemplateaudiencewebhooklimitdata[].pausedDetailstringMore about why it is paused. Empty when a person paused it.
data[].triggerobjectWhat starts a run, in the copy you edit.
data[].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
eventscheduledatemanualdata[].trigger.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.data[].trigger.audienceIdstringOptionalThe audience the automation is for. Needed for
scheduleanddate. Foreventit limits the automation to contacts of that audience. Up to 64 characters.data[].trigger.matchstringOptionalallwhen every condition has to hold,anywhen one is enough. Without it, all.One of
allanydata[].trigger.conditionsobject[]OptionalFor
event: tests the event and the person have to pass to start a run. Up to 10 items.data[].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
datawaitedcontactemaileventaudiencesubscribedgroupdata[].trigger.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.data[].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_emptydata[].trigger.conditions[].valuestring | number | booleanOptionalWhat the value is compared with. Text can hold
{{name}}slots, filled from what started the run. Up to 500 characters.data[].trigger.conditions[].stepstringOptionalFor
email: the id of the step that sent it.data[].trigger.conditions[].statusstringOptionalFor
email: what has to have happened to it:delivered,opened,clicked,bouncedorcomplained.One of
deliveredopenedclickedbouncedcomplaineddata[].trigger.conditions[].eventstringOptionalFor
eventandwaited: the name of the event.data[].trigger.conditions[].withinDaysintegerOptionalFor
event: how many days back to look. Without it, since the run started. From 1 to 365.data[].trigger.conditions[].audienceIdstringOptionalFor
audience: the id of the audience. Up to 64 characters.data[].trigger.conditions[].notbooleanOptionaltrueturns the test around.data[].trigger.conditions[].matchstringOptionalFor
group:allwhen every test inside has to hold,anywhen one is enough.One of
allanydata[].trigger.conditions[].conditionsobject[]OptionalFor
group: the tests inside it. Up to 10 items.data[].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
datawaitedcontactemaileventaudiencesubscribedgroupdata[].trigger.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.data[].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_emptydata[].trigger.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.data[].trigger.conditions[].conditions[].stepstringOptionalFor
email: the id of the step that sent it.data[].trigger.conditions[].conditions[].statusstringOptionalFor
email: what has to have happened to it:delivered,opened,clicked,bouncedorcomplained.One of
deliveredopenedclickedbouncedcomplaineddata[].trigger.conditions[].conditions[].eventstringOptionalFor
eventandwaited: the name of the event.data[].trigger.conditions[].conditions[].withinDaysintegerOptionalFor
event: how many days back to look. Without it, since the run started. From 1 to 365.data[].trigger.conditions[].conditions[].audienceIdstringOptionalFor
audience: the id of the audience. Up to 64 characters.data[].trigger.conditions[].conditions[].notbooleanOptionaltrueturns the test around.data[].trigger.everystringOptionalFor
schedule: how often it repeats:day,weekormonth.One of
dayweekmonthdata[].trigger.timestringOptionalFor
scheduleanddate: the time of day it starts, asHH:MMin the time zone of the automation.data[].trigger.daysstring[]OptionalFor a weekly
schedule: the days it runs on, such as["mon", "thu"]. Up to 7 items.One of
sunmontuewedthufrisatdata[].trigger.dayOfMonthintegerOptionalFor a monthly
schedule: the day of the month, from 1 to 28.data[].trigger.propertystringOptionalFor
date: the contact property that holds the date, such astrial_ends_at.data[].trigger.offsetDaysintegerOptionalFor
date: how many days after the date to start. A negative number starts before it. From -365 to 365.data[].trigger.yearlybooleanOptionalFor
date:trueto start every year on that day, as for a birthday.data[].settingsobjectThe rules of the automation, in the copy you edit.
data[].settings.timezonestringThe time zone its times are read in, such as
Europe/London. Up to 120 characters.data[].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_exitalwaysdata[].settings.reentryAfterDaysintegerWith
after_exit: how many days have to pass after a run ends. 0 for none. From 0 to 365.data[].settings.windowobject | nullThe sending hours. An email that is due outside them waits until they open.
nullsends at any time.data[].settings.window.daysstring[]The days emails may go out on, such as
["mon", "fri"]. Up to 7 items.One of
sunmontuewedthufrisatdata[].settings.window.fromstringWhen the sending hours open, as
HH:MM.data[].settings.window.tostringWhen they close, as
HH:MM.data[].settings.exitOnstring[]Events that take a person out of the automation when they arrive. Up to 10 items.
data[].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.data[].stepCountintegerHow many steps the copy you edit has.
data[].versionintegerThe number of the published version. 0 when it was never published.
data[].publishedAtstring | nullWhen it was last published, or
null.data[].changedbooleantruewhen the copy you edit differs from the published one.data[].statsobjectWhat its runs have done so far.
data[].stats.enteredintegerHow many runs have started.
data[].stats.activeintegerHow many runs are going on now.
data[].stats.completedintegerHow many runs reached the end of their path.
data[].stats.exitedintegerHow many runs left early.
data[].stats.failedintegerHow many runs ended on a step that failed.
data[].stats.canceledintegerHow many runs were cancelled.
data[].stats.sentintegerHow many emails its runs sent.
data[].stats.lastRunAtstring | nullWhen a run last started, or
null.data[].createdAtstringWhen the automation was made.
data[].updatedAtstringWhen it was last changed.
totalintegerHow many items match in all, on every page together.
hasMorebooleanWhether more items follow this page.