Skip to the page

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

  • <automation-id>stringRequired

    The id of the automation. Up to 64 characters.

  • --statusstring

    Only runs in this state: running, waiting, completed, exited, failed or canceled.

    One ofrunningwaitingcompletedexitedfailedcanceled

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[].idstring

    The id of the run.

  • data[].automationIdstring

    The id of the automation.

  • data[].versioninteger

    The version of the automation the run follows.

  • data[].emailstring

    The address of the person.

  • data[].contactIdstring | null

    The id of their contact, or null for a bare address.

  • data[].statusstring

    Where the run stands: running, waiting, completed, exited, failed or canceled.

    One ofrunningwaitingcompletedexitedfailedcanceled

  • data[].stepIdstring | null

    The id of the step it is at, or null once it has ended.

  • data[].sourcestring

    What started it: the name of the event, or schedule, date, manual or test.

  • data[].testboolean

    true for a test run.

  • data[].reasonstring | null

    Why it ended before the end of its path, or null.

    One ofexit_stepgoalunsubscribedcontact_deletedautomation_deletedautomation_stoppedmissing_variablesend_refusedstep_failedcanceled

  • data[].detailstring

    More about how it ended. Empty while it is going on.

  • data[].wakeAtstring | null

    When a waiting run goes on, or null.

  • data[].startedAtstring

    When the run started.

  • data[].finishedAtstring | null

    When it ended, or null.

  • totalinteger

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

  • hasMoreboolean

    Whether more items follow this page.