Skip to main content

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({
  orgId: 'org-id',
  name: 'My Workflow',
  workflowDefinition,
});