Skip to the page

List automations

The automations of the workspace, newest first, by status and search, each with what its runs have done.

opensend automations list [flags]
Needs the scopeautomations:read
Only reads

Flags

  • --qstring

    Text to search for. Only items that contain it are returned. Up to 40 characters.

  • --limitinteger

    How many items to return, from 1 to 100. Without it you get 25.

  • --offsetinteger

    How many items to skip. Use it with limit to read the next page. Default: 0.

  • --afterstring

    The 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.

  • --beforestring

    The 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.

  • --statusstring

    Only automations in this state: draft, active or paused.

    One ofdraftactivepaused

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"list"

    Always list.

  • dataobject[]

    The items on this page.

  • data[].object"automation"

    Always automation.

  • data[].idstring

    The id of the automation.

  • data[].namestring

    The name of the automation.

  • data[].descriptionstring

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

  • data[].statusstring

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

    One ofdraftactivepaused

  • data[].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

  • data[].pausedDetailstring

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

  • data[].triggerobject

    What starts a run, in the copy you edit.

  • data[].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

  • data[].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.

  • data[].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.

  • data[].trigger.matchstringOptional

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

    One ofallany

  • data[].trigger.conditionsobject[]Optional

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

  • data[].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

  • data[].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.

  • data[].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

  • data[].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.

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

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

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

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

    One ofdeliveredopenedclickedbouncedcomplained

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

    For event and waited: the name of the event.

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

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

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

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

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

    true turns the test around.

  • data[].trigger.conditions[].matchstringOptional

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

    One ofallany

  • data[].trigger.conditions[].conditionsobject[]Optional

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

  • data[].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

  • data[].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.

  • data[].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

  • data[].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.

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

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

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

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

    One ofdeliveredopenedclickedbouncedcomplained

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

    For event and waited: the name of the event.

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

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

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

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

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

    true turns the test around.

  • data[].trigger.everystringOptional

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

    One ofdayweekmonth

  • data[].trigger.timestringOptional

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

  • data[].trigger.daysstring[]Optional

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

    One ofsunmontuewedthufrisat

  • data[].trigger.dayOfMonthintegerOptional

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

  • data[].trigger.propertystringOptional

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

  • data[].trigger.offsetDaysintegerOptional

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

  • data[].trigger.yearlybooleanOptional

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

  • data[].settingsobject

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

  • data[].settings.timezonestring

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

  • data[].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

  • data[].settings.reentryAfterDaysinteger

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

  • data[].settings.windowobject | null

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

  • data[].settings.window.daysstring[]

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

    One ofsunmontuewedthufrisat

  • data[].settings.window.fromstring

    When the sending hours open, as HH:MM.

  • data[].settings.window.tostring

    When 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.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.

  • data[].stepCountinteger

    How many steps the copy you edit has.

  • data[].versioninteger

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

  • data[].publishedAtstring | null

    When it was last published, or null.

  • data[].changedboolean

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

  • data[].statsobject

    What its runs have done so far.

  • data[].stats.enteredinteger

    How many runs have started.

  • data[].stats.activeinteger

    How many runs are going on now.

  • data[].stats.completedinteger

    How many runs reached the end of their path.

  • data[].stats.exitedinteger

    How many runs left early.

  • data[].stats.failedinteger

    How many runs ended on a step that failed.

  • data[].stats.canceledinteger

    How many runs were cancelled.

  • data[].stats.sentinteger

    How many emails its runs sent.

  • data[].stats.lastRunAtstring | null

    When a run last started, or null.

  • data[].createdAtstring

    When the automation was made.

  • data[].updatedAtstring

    When it was last changed.

  • totalinteger

    How many items match in all, on every page together.

  • hasMoreboolean

    Whether more items follow this page.