# List workflows

> Source: https://elaichi.ai/docs/api-reference/workflows/automation/listautomations/

`GET /automation`

Resource: **Workflow** · API: **Workflows**

## Query parameters

- **`q`** _(string)_
  Substring match on the workflow's name or description. LIKE wildcards are matched literally. Max 200 characters.
- **`status`** _(string)_
  Allowed: `draft`, `active`, `disabled`, `paused`
- **`attention`** _(boolean)_

## Response body

- **`result`** _(array<object>)_
  - **`id`** _(string)_
  - **`owner_user_id`** _(string)_
  - **`name`** _(string)_
  - **`description`** _(string)_
  - **`status`** _(string)_
    Allowed: `draft`, `active`, `disabled`, `paused`
  - **`paused_reason`** _(string,null)_
  - **`enabled`** _(boolean)_
  - **`draft_revision`** _(integer)_
  - **`draft_step_count`** _(integer)_
  - **`draft_tier`** _(string,null)_
  - **`draft_updated_at`** _(string)_
  - **`draft_updated_by`** _(string,null)_
  - **`published_version_id`** _(string,null)_
  - **`published_version_number`** _(integer,null)_
  - **`published_at`** _(string,null)_
  - **`published_tier`** _(string,null)_
  - **`published_revision`** _(integer,null)_
  - **`trigger_summary`** _(object)_
    - **`manual_count`** _(integer)_
    - **`cron_count`** _(integer)_
  - **`run_summary`** _(unknown)_
  - **`run_summary_updated_at`** _(string,null)_
  - **`attention`** _(object,null)_
  - **`engine_config_rev`** _(integer)_
  - **`engine_synced_rev`** _(integer)_
  - **`created_at`** _(string)_
  - **`updated_at`** _(string)_
  - **`can_use`** _(boolean)_
  - **`can_share`** _(boolean)_
  - **`can_manage`** _(boolean)_
  - **`can_transfer`** _(boolean)_
  - **`can_revoke_share`** _(boolean)_
  - **`can_see_shares`** _(boolean)_
  - **`can_run`** _(boolean)_
  - **`can_publish`** _(boolean)_
  - **`publish_requires`** _(object)_
    - **`permission`** _(string,null)_
    - **`blocked_reason`** _(string,null)_
  - **`owner_display_name`** _(string,null)_
  - **`owner_avatar_url`** _(string,null)_
    The person's picture: their stored profile picture, else a Gravatar URL (`d=404`, 96px) derived from their email (the address itself is not sent), else null. Draw initials when it is null or the image fails to load.
  - **`access_via`** _(string)_
  - **`access_summary`** _(unknown)_
  - **`glance`** _(object)_
    Absent when the caller is below `use` access (run history is what the runs tab shows) or while it is not known yet.
    - **`apps`** _(array<object>)_
      Connected apps the live version uses (the draft, if never published), most-used first.
      - **`connector_id`** _(string)_
      - **`name`** _(string)_
      - **`icon_url`** _(string,null)_
    - **`apps_more`** _(integer)_
      Apps beyond `apps`.
    - **`run_history`** _(array<object>)_
      Runs per UTC day by the day each was queued, oldest first, ending today. Dry runs excluded.
      - **`day`** _(string)_
      - **`succeeded`** _(integer)_
      - **`failed`** _(integer)_
      - **`other`** _(integer)_
        Canceled, skipped or still going.
- **`next_cursor`** _(string,null)_
- **`prev_cursor`** _(string,null)_

## Code examples

### curl

```bash
curl -X GET 'https://api.elaichi.ai/automation' \
  -H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
  -H 'Content-Type: application/json'
```

### JavaScript

```javascript
const response = await fetch('https://api.elaichi.ai/automation', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
```

### Python

```python
import os
import requests

url = "https://api.elaichi.ai/automation"
headers = {
    "Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
    "Content-Type": "application/json",
}

response = requests.get(url, headers=headers)
print(response.json())
```
