# List automations

`GET /v1/automations`

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

Needs the scope: `automations:read`

## Query parameters

- `q` (string): Text to search for. Only items that contain it are returned. Up to 40 characters.
- `limit` (integer): How many items to return, from 1 to 100. Without it you get 25.
- `offset` (integer): How many items to skip. Use it with `limit` to read the next page. Default: `0`.
- `after` (string): 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.
- `before` (string): 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.
- `status` (string): Only automations in this state: `draft`, `active` or `paused`. One of: `draft`, `active`, `paused`.

## Returns

- `object` ("list"): Always `list`.
- `data` (object[]): The items on this page.
- `data[].object` ("automation"): Always `automation`.
- `data[].id` (string): The id of the automation.
- `data[].name` (string): The name of the automation.
- `data[].description` (string): A sentence about what it is for. Empty when none was given.
- `data[].status` (string): `draft` until it is published, `active` while people can enter, `paused` when it is held. One of: `draft`, `active`, `paused`.
- `data[].pausedReason` (string | 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 of: `manual`, `sender`, `template`, `audience`, `webhook`, `limit`.
- `data[].pausedDetail` (string): More about why it is paused. Empty when a person paused it.
- `data[].trigger` (object): What starts a run, in the copy you edit.
- `data[].trigger.kind` (string): 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 of: `event`, `schedule`, `date`, `manual`.
- `data[].trigger.event` (string, optional): 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.audienceId` (string, optional): 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.match` (string, optional): `all` when every condition has to hold, `any` when one is enough. Without it, all. One of: `all`, `any`.
- `data[].trigger.conditions` (object[], optional): For `event`: tests the event and the person have to pass to start a run. Up to 10 items.
- `data[].trigger.conditions[].kind` (string): 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 of: `data`, `waited`, `contact`, `email`, `event`, `audience`, `subscribed`, `group`.
- `data[].trigger.conditions[].field` (string, optional): 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[].operator` (string, optional): For `data`, `waited` and `contact`: how the value is compared. `exists` and `is_empty` take no `value`. One of: `equals`, `not_equals`, `greater_than`, `greater_or_equal`, `less_than`, `less_or_equal`, `contains`, `not_contains`, `starts_with`, `ends_with`, `exists`, `is_empty`.
- `data[].trigger.conditions[].value` (string | number | boolean, optional): What the value is compared with. Text can hold `{{name}}` slots, filled from what started the run. Up to 500 characters.
- `data[].trigger.conditions[].step` (string, optional): For `email`: the id of the step that sent it.
- `data[].trigger.conditions[].status` (string, optional): For `email`: what has to have happened to it: `delivered`, `opened`, `clicked`, `bounced` or `complained`. One of: `delivered`, `opened`, `clicked`, `bounced`, `complained`.
- `data[].trigger.conditions[].event` (string, optional): For `event` and `waited`: the name of the event.
- `data[].trigger.conditions[].withinDays` (integer, optional): For `event`: how many days back to look. Without it, since the run started. From 1 to 365.
- `data[].trigger.conditions[].audienceId` (string, optional): For `audience`: the id of the audience. Up to 64 characters.
- `data[].trigger.conditions[].not` (boolean, optional): `true` turns the test around.
- `data[].trigger.conditions[].match` (string, optional): For `group`: `all` when every test inside has to hold, `any` when one is enough. One of: `all`, `any`.
- `data[].trigger.conditions[].conditions` (object[], optional): For `group`: the tests inside it. Up to 10 items.
- `data[].trigger.conditions[].conditions[].kind` (string): 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 of: `data`, `waited`, `contact`, `email`, `event`, `audience`, `subscribed`, `group`.
- `data[].trigger.conditions[].conditions[].field` (string, optional): 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[].operator` (string, optional): For `data`, `waited` and `contact`: how the value is compared. `exists` and `is_empty` take no `value`. One of: `equals`, `not_equals`, `greater_than`, `greater_or_equal`, `less_than`, `less_or_equal`, `contains`, `not_contains`, `starts_with`, `ends_with`, `exists`, `is_empty`.
- `data[].trigger.conditions[].conditions[].value` (string | number | boolean, optional): 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[].step` (string, optional): For `email`: the id of the step that sent it.
- `data[].trigger.conditions[].conditions[].status` (string, optional): For `email`: what has to have happened to it: `delivered`, `opened`, `clicked`, `bounced` or `complained`. One of: `delivered`, `opened`, `clicked`, `bounced`, `complained`.
- `data[].trigger.conditions[].conditions[].event` (string, optional): For `event` and `waited`: the name of the event.
- `data[].trigger.conditions[].conditions[].withinDays` (integer, optional): For `event`: how many days back to look. Without it, since the run started. From 1 to 365.
- `data[].trigger.conditions[].conditions[].audienceId` (string, optional): For `audience`: the id of the audience. Up to 64 characters.
- `data[].trigger.conditions[].conditions[].not` (boolean, optional): `true` turns the test around.
- `data[].trigger.every` (string, optional): For `schedule`: how often it repeats: `day`, `week` or `month`. One of: `day`, `week`, `month`.
- `data[].trigger.time` (string, optional): For `schedule` and `date`: the time of day it starts, as `HH:MM` in the time zone of the automation.
- `data[].trigger.days` (string[], optional): For a weekly `schedule`: the days it runs on, such as `["mon", "thu"]`. Up to 7 items. One of: `sun`, `mon`, `tue`, `wed`, `thu`, `fri`, `sat`.
- `data[].trigger.dayOfMonth` (integer, optional): For a monthly `schedule`: the day of the month, from 1 to 28.
- `data[].trigger.property` (string, optional): For `date`: the contact property that holds the date, such as `trial_ends_at`.
- `data[].trigger.offsetDays` (integer, optional): For `date`: how many days after the date to start. A negative number starts before it. From -365 to 365.
- `data[].trigger.yearly` (boolean, optional): For `date`: `true` to start every year on that day, as for a birthday.
- `data[].settings` (object): The rules of the automation, in the copy you edit.
- `data[].settings.timezone` (string): The time zone its times are read in, such as `Europe/London`. Up to 120 characters.
- `data[].settings.reentry` (string): 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 of: `once`, `after_exit`, `always`.
- `data[].settings.reentryAfterDays` (integer): With `after_exit`: how many days have to pass after a run ends. 0 for none. From 0 to 365.
- `data[].settings.window` (object | null): The sending hours. An email that is due outside them waits until they open. `null` sends at any time.
- `data[].settings.window.days` (string[]): The days emails may go out on, such as `["mon", "fri"]`. Up to 7 items. One of: `sun`, `mon`, `tue`, `wed`, `thu`, `fri`, `sat`.
- `data[].settings.window.from` (string): When the sending hours open, as `HH:MM`.
- `data[].settings.window.to` (string): When they close, as `HH:MM`.
- `data[].settings.exitOn` (string[]): Events that take a person out of the automation when they arrive. Up to 10 items.
- `data[].settings.respectUnsubscribes` (boolean): `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[].stepCount` (integer): How many steps the copy you edit has.
- `data[].version` (integer): The number of the published version. 0 when it was never published.
- `data[].publishedAt` (string | null): When it was last published, or `null`.
- `data[].changed` (boolean): `true` when the copy you edit differs from the published one.
- `data[].stats` (object): What its runs have done so far.
- `data[].stats.entered` (integer): How many runs have started.
- `data[].stats.active` (integer): How many runs are going on now.
- `data[].stats.completed` (integer): How many runs reached the end of their path.
- `data[].stats.exited` (integer): How many runs left early.
- `data[].stats.failed` (integer): How many runs ended on a step that failed.
- `data[].stats.canceled` (integer): How many runs were cancelled.
- `data[].stats.sent` (integer): How many emails its runs sent.
- `data[].stats.lastRunAt` (string | null): When a run last started, or `null`.
- `data[].createdAt` (string): When the automation was made.
- `data[].updatedAt` (string): When it was last changed.
- `total` (integer): How many items match in all, on every page together.
- `hasMore` (boolean): Whether more items follow this page.

## Example

cURL:

```bash
curl "$OPENSEND_API_URL/v1/automations?status=paused" \
  -H "Authorization: Bearer $OPENSEND_API_KEY"
```

TypeScript:

```ts
await opensend.automations.list({
  status: 'paused',
})
```

CLI:

```bash
opensend automations list --status paused
```

MCP:

```json
{
  "name": "automations_list",
  "arguments": {
    "status": "paused"
  }
}
```

Answer:

```json
{
  "object": "list",
  "data": [
    {
      "object": "automation",
      "id": "auto_winback",
      "name": "Win back quiet customers",
      "description": "Offers a discount and waits a week for an order.",
      "status": "paused",
      "pausedReason": "manual",
      "pausedDetail": "",
      "trigger": {
        "kind": "event",
        "event": "customer.quiet"
      },
      "settings": {
        "timezone": "UTC",
        "reentry": "after_exit",
        "reentryAfterDays": 0,
        "window": null,
        "exitOn": [],
        "respectUnsubscribes": true
      },
      "stepCount": 3,
      "version": 1,
      "publishedAt": "2026-10-18T09:30:00.000Z",
      "changed": false,
      "stats": {
        "entered": 1140,
        "active": 0,
        "completed": 1088,
        "exited": 52,
        "failed": 0,
        "canceled": 0,
        "sent": 1904,
        "lastRunAt": "2026-11-24T09:30:00.000Z"
      },
      "createdAt": "2026-10-18T09:30:00.000Z",
      "updatedAt": "2026-10-18T09:30:00.000Z"
    }
  ],
  "total": 1,
  "hasMore": false
}
```
