List Watched Folders
curl --request GET \
--url https://api.example.com/storage_trigger/{trigger_id}/foldersimport requests
url = "https://api.example.com/storage_trigger/{trigger_id}/folders"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/storage_trigger/{trigger_id}/folders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/storage_trigger/{trigger_id}/folders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/storage_trigger/{trigger_id}/folders"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/storage_trigger/{trigger_id}/folders")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/storage_trigger/{trigger_id}/folders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyPipeline Observability
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.
GET
/
storage_trigger
/
{trigger_id}
/
folders
List Watched Folders
curl --request GET \
--url https://api.example.com/storage_trigger/{trigger_id}/foldersimport requests
url = "https://api.example.com/storage_trigger/{trigger_id}/folders"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/storage_trigger/{trigger_id}/folders', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/storage_trigger/{trigger_id}/folders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/storage_trigger/{trigger_id}/folders"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/storage_trigger/{trigger_id}/folders")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/storage_trigger/{trigger_id}/folders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyRequired scope:
Workspace IDs and resource IDs above are examples. Use IDs returned by your own API calls.
When
triggers:read. See API key permissions and the pipeline dashboard guide.
Request
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"
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
{
"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 |
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 before building a dashboard.Was this page helpful?