Skip to main content

Endpoint

POST https://api.ugc.inc/automations/list-all-runs

Request Body

limit
number
Maximum number of runs to return.
reviewStatus
'pending_review' | 'approved' | 'rejected' | 'all'
Optional review status filter.
templateId
string
Optional template filter.
cursor
string
ISO timestamp cursor for pagination. Use the created_at value of the last run from the previous page.

Response

data.runs
Array<{ run: AutomationRun; templateName: string; nodeCount: number; completedNodeCount: number }>
Runs with template metadata.
data.hasMore
boolean
Whether more runs are available after this page.

TypeScript

// First page
const res = await client.automations.listAllRuns({ limit: 20 });

// Next page
const nextRes = await client.automations.listAllRuns({
  limit: 20,
  cursor: res.data.runs[res.data.runs.length - 1].run.created_at,
});