List runs
The runs of one automation, newest first: one for each time a person went through it, by status and address.
opensend runs list <automation-id> [flags]Flags
--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.<automation-id>stringRequiredThe id of the automation. Up to 64 characters.
--statusstringOnly runs in this state:
running,waiting,completed,exited,failedorcanceled.One of
runningwaitingcompletedexitedfailedcanceled
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_run"Always
automation_run.data[].idstringThe id of the run.
data[].automationIdstringThe id of the automation.
data[].versionintegerThe version of the automation the run follows.
data[].emailstringThe address of the person.
data[].contactIdstring | nullThe id of their contact, or
nullfor a bare address.data[].statusstringWhere the run stands:
running,waiting,completed,exited,failedorcanceled.One of
runningwaitingcompletedexitedfailedcanceleddata[].stepIdstring | nullThe id of the step it is at, or
nullonce it has ended.data[].sourcestringWhat started it: the name of the event, or
schedule,date,manualortest.data[].testbooleantruefor a test run.data[].reasonstring | nullWhy it ended before the end of its path, or
null.One of
exit_stepgoalunsubscribedcontact_deletedautomation_deletedautomation_stoppedmissing_variablesend_refusedstep_failedcanceleddata[].detailstringMore about how it ended. Empty while it is going on.
data[].wakeAtstring | nullWhen a waiting run goes on, or
null.data[].startedAtstringWhen the run started.
data[].finishedAtstring | nullWhen it ended, or
null.totalintegerHow many items match in all, on every page together.
hasMorebooleanWhether more items follow this page.