Skip to main content

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.

Endpoint

POST https://api.ugc.inc/automations/create

Request Body

name
string
required
Template display name.
workflowDefinition
WorkflowDefinition
required
Workflow graph definition (nodes and optional canvasState).
description
string
Optional template description.
templateId
string
If set, updates the existing template instead of creating a new one.
skipValidation
boolean
If true, skips workflow validation (for draft saves).

Response

data
string
Template ID.

TypeScript

const res = await client.automations.createTemplate({
  name: 'My Workflow',
  workflowDefinition,
});