> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mosaic.so/llms.txt
> Use this file to discover all available pages before exploring further.

# List Watched Folders

> List discovered watched Drive/Dropbox folders, watcher health, last observed event, and errors. Empty last_event_at means no recorded event; it does not prove that a folder contains no files.

Required scope: `triggers:read`. See [API key permissions](/api/api-key-scopes) and the [pipeline dashboard guide](/api/observability/overview).

## Request

```bash theme={null}
curl "https://api.mosaic.so/storage_trigger/22222222-2222-4222-8222-222222222222/folders?limit=25" \
  -H "Authorization: Bearer mk_your_api_key" \
  -H "X-Workspace-Id: 66666666-6666-4666-8666-666666666666"
```

Workspace IDs and resource IDs above are examples. Use IDs returned by your own API calls.

## Parameters

| Parameter | Location | Meaning |
| - | - | - |
| `limit` | query | Page size from 1 to 100; default 25. Progress and notification configuration pages count tiles. |
| `cursor` | query | Opaque next\_cursor from the previous page. Pass verbatim and preserve the original filters. Do not decode or construct it. |
| `from` | query | Inclusive ISO 8601 lower bound on creation time. |
| `to` | query | Inclusive ISO 8601 upper bound on creation time. |
| `updated_from` | query | Inclusive ISO 8601 update watermark. Restart pagination on each poll and fetch every page before advancing it. |
| `workspace_id` | query | Optional workspace UUID within the key organization. Must match X-Workspace-Id when both are supplied. |
| `folder_id` | query | Provider parent folder ID for event/folder queries; batches use batch\_folder\_node\_id. |
| `trigger_id` | path | trigger id UUID. |
| `active` | query | Optional subscription activity filter. By default, include inactive subscriptions and soft-deleted watchers with their last health/error state. updated\_from matches changes to either the subscription or its shared watcher, and each folder item updated\_at is the later timestamp. Folder names come from drive\_nodes\_cache. |
| `X-Workspace-Id` | header | Restrict requests to an authorized workspace UUID. Omit to query the organization. |

## Response example

```json theme={null}
{
  "trigger_id": "22222222-2222-4222-8222-222222222222",
  "folders": [
    {
      "id": "55555555-5555-4555-8555-555555555555",
      "created_at": "2026-10-15T12:00:00Z",
      "updated_at": "2026-10-15T12:01:00Z",
      "depth_from_root": 0,
      "is_active": false,
      "watcher": {
        "id": "55555555-5555-4555-8555-555555555555",
        "folder_id": "drive-folder-7",
        "folder_name": "Production",
        "status": "error",
        "last_event_at": "2026-10-15T12:00:00Z",
        "last_error": "watcher recovery failed",
        "webhook_interval_minutes": 1,
        "updated_at": "2026-10-15T12:01:00Z",
        "deleted_at": null
      }
    }
  ],
  "next_cursor": null
}
```

## Folders values

| Field | Meaning |
| - | - |
| `id` | Watcher subscription ID, used internally by pagination. |
| `created_at` | Watcher subscription creation time. |
| `updated_at` | Later of subscription.updated\_at and watcher.updated\_at. updated\_from matches either row. |
| `depth_from_root` | Folder depth below the selected root. |
| `is_active` | Whether this trigger currently watches this folder. |
| `watcher` | |

When `next_cursor` is non-null, request the next page with the same filters and that cursor. `limit` defaults to 25 and is capped at 100. Read the [polling and error-handling guidance](/api/observability/overview#poll-without-losing-updates) before building a dashboard.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.