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

# Validate Workflow

> Validate an automation workflow definition without saving it

## Endpoint

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

## Request Body

<ParamField body="workflowDefinition" type="WorkflowDefinition" required>
  Workflow graph to validate.
</ParamField>

## Response

<ResponseField name="data" type="{ valid: boolean; errors: string[] }">
  Validation result and error messages.
</ResponseField>

## TypeScript

```typescript theme={null}
const res = await client.automations.validateWorkflow({ workflowDefinition });
```
