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

# List Template Runs

> List runs for a specific automation template

## Endpoint

```bash theme={null}
POST https://api.ugc.inc/automations/list-runs
```

## Request Body

<ParamField body="templateId" type="string" required>
  Template ID.
</ParamField>

<ParamField body="limit" type="number">
  Maximum number of runs to return.
</ParamField>

## Response

<ResponseField name="data" type="Array<{ run: AutomationRun; nodeCount: number }>">
  Runs for the template.
</ResponseField>

## TypeScript

```typescript theme={null}
const res = await client.automations.listRuns({ templateId: 'tpl_123', limit: 20 });
```
