> ## 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.

# Get Automation Run Logs

> Retrieve run logs ordered by creation time

## Endpoint

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

## Request Body

<ParamField body="runId" type="string" required>
  Run ID.
</ParamField>

## Response

<ResponseField name="data" type="AutomationRunLog[]">
  Log entries for the run.
</ResponseField>

## TypeScript

```typescript theme={null}
const res = await client.automations.getLogs({ runId: 'run_123' });
```
