APIAutomations
List automations
List scheduled automations in a project, with run health and recent run stats.
Query Parameters
projectId?string
Project to list automations for. Auto-filled from CLI and SDK context when omitted.
Format
uuidsearch?string
Case-insensitive partial match on automation name.
status?string
Filter by enabled (active) or disabled (paused) automations.
Value in
- "active"
- "paused"
health?string
Filter by automation health.
Value in
- "healthy"
- "failing"
- "never_run"
source?string
Filter by automation source.
Value in
- "sazabi_managed"
- "custom"
sort?string
Sort order for the returned automations.
Default
"name"Value in
- "name"
- "last_run"
- "failures"
- "runs"
limit?integer
Maximum number of automations to return per page.
Range
1 <= value <= 100Default
50cursor?string
Cursor from a previous response's nextCursor to fetch the next page.
Response Body
application/json
curl -X GET "https://example.com/automations"{ "automations": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8", "name": "string", "kind": "script", "scriptId": "f0627ad0-1039-49a9-8db1-75a1523ed451", "scriptName": "string", "signalDefinitionId": "d7125c3e-7ab8-463b-aa4e-53fd9aaeb380", "signalType": "expression_matched", "source": "sazabi_managed", "enabled": true, "cronExpression": "string", "timezone": "string", "timeoutSeconds": -9007199254740991, "health": "healthy", "lastRun": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "automationRunKey": "string", "status": "running", "startedAt": "2019-08-24T14:15:22Z", "completedAt": "2019-08-24T14:15:22Z", "durationMs": -9007199254740991, "exitCode": -9007199254740991 }, "successRate": 0, "runCount": -9007199254740991, "failedRunCount": -9007199254740991 } ], "nextCursor": "string"}