Skip to main content
POST
/
automations
Create automation
curl --request POST \
  --url http://api.gu1.ai/automations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "type": "<string>",
  "triggerType": "<string>",
  "triggerConfig": {},
  "conditions": [
    {}
  ],
  "actions": [
    {}
  ],
  "steps": [
    {}
  ],
  "graph": {},
  "layout": {},
  "enabled": true
}
'

Endpoint

POST https://api.gu1.ai/automations
Content-Type: application/json

Body (main fields)

name
string
required
Display name
type
string
realtime (default) | scheduled
triggerType
string
required
Valid engine trigger (e.g. manual_execution, investigation_created, scheduled, …)
triggerConfig
object
Trigger-specific config (schedule, filters, etc.)
conditions
array
Condition objects: field, operator, value
actions
array
Legacy flat list: { type, config }
steps
array
{ conditions, actions, waitAfterStep? }[]
graph
object
{ nodes[], edges[] } — nodes: trigger | condition | action; edges may include sourceHandle: true | false. Must include at least one trigger node.
layout
object
Optional node positions for the builder UI
enabled
boolean
Default true

Response

201{ "automation": { ... } } 400 — validation or synergy error (synergyErrors may be present)