# List Workflow Activity

See what every workflow did each day in one call: how many times it ran, how many runs failed, and how many records it created, updated, deleted and read. Built for dashboards: it reads pre-aggregated hourly activity, so it stays fast for any number of runs. A run counts on the UTC day it started. Runs that finished after meta.completeThrough may not be counted yet; the counts catch up within about an hour. Days with no runs have no row, and activity is kept from September 2026. Deleted workflows are left out. When acting in another organization, Embedded runs are left out. meta.from and meta.to name the days covered.

`GET https://connect.mindcloud.co/v2/workflow-activity`

Permissions: `log:view`.

## Parameters

### Headers

- `X-Company-Id` (string): Optional. The id of the organization to act in. Leave it out to act in the API key's own organization. A key can also act in its child organizations, and, with "Use this key across all of your organizations" on, in every organization its creator can open in the app. List them with GET /v2/companies. Every response's X-Company-Id header names the organization it acted in. See [Organizations](https://mindcloud.co/docs/api/rest/introduction/organizations).

### Query

- `from` (string): First day of the window (YYYY-MM-DD, UTC). Defaults to 29 days before "to".
- `to` (string): Last day of the window (YYYY-MM-DD, UTC), included. Defaults to today. A window covers at most 92 days.

## Example request

```bash
curl --request GET \
  --url 'https://connect.mindcloud.co/v2/workflow-activity?from=2026-10-25&to=2026-11-23' \
  --header 'Authorization: Bearer $MINDCLOUD_API_TOKEN'
```

## Response fields

- `id` (string): A stable key for this row: one workflow on one day. Do not parse it; read workflowId and date.
- `date` (string): The UTC day the runs started (YYYY-MM-DD). A run counts on the day it started, even when it finished the next day.
- `workflowId` (string): The workflow, from List Workflows.
- `workflowName` (string): The workflow's current name.
- `runs` (number): Runs of the workflow that started that day: every run, including ones that failed or were cancelled.
- `failedRuns` (number): How many of those runs failed. For runs from about the last 30 days, List Failed Runs returns each one with the step it stopped at.
- `recordsCreated` (number): Records those runs logged as created in the apps the workflow writes to.
- `recordsUpdated` (number): Records those runs logged as updated.
- `recordsDeleted` (number): Records those runs logged as deleted. Counted from late November 2026; earlier days show 0.
- `recordsRead` (number): Records those runs logged as read. Most steps that read data do not log each record, so this is often 0.

## Example response

```json
{
  "success": true,
  "data": [
    {
      "id": "Wq3kZ8pLx2Nb:2026-11-23",
      "date": "2026-11-23",
      "workflowId": "Wq3kZ8pLx2Nb",
      "workflowName": "Hubspot - Assign tickets",
      "runs": 96,
      "failedRuns": 2,
      "recordsCreated": 40,
      "recordsUpdated": 310,
      "recordsDeleted": 0,
      "recordsRead": 0
    },
    {
      "id": "Hn7tR2vKc9Ds:2026-11-23",
      "date": "2026-11-23",
      "workflowId": "Hn7tR2vKc9Ds",
      "workflowName": "Google Calendar to Hubspot",
      "runs": 24,
      "failedRuns": 0,
      "recordsCreated": 3,
      "recordsUpdated": 0,
      "recordsDeleted": 1,
      "recordsRead": 0
    }
  ],
  "meta": {
    "pagination": {
      "totalCount": 2,
      "totalCountExact": true,
      "hasNextPage": false,
      "hasPreviousPage": false
    },
    "from": "2026-10-25",
    "to": "2026-11-23",
    "completeThrough": "2026-11-23T11:00:00.000Z"
  }
}
```

## Errors

- 400 A window that is not valid (INVALID_QUERY): `VALIDATION_FAILED` / `INVALID_QUERY` "A window covers at most 92 days; 2026-08-23 to 2026-11-23 is 93. Split it into several calls."
- 503 Activity is temporarily unavailable (WORKFLOW_ACTIVITY_UNAVAILABLE): `UNAVAILABLE` / `WORKFLOW_ACTIVITY_UNAVAILABLE` "Workflow activity is temporarily unavailable. Try again in a few minutes."
