Create automation (definition + trigger + entry/exit) in one request
Requires ADMIN project role. Validates graph + effect props before writing.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”projectId
required
string
Project (tenant) identifier. Row-level tenant isolation is enforced on every query.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
string
description
string | null
triggerEventName
required
string
entryConditionJson
object | null
exitConditionJson
object | null
reEntryMode
string
reEntryIntervalSeconds
Required when reEntryMode=interval.
integer
maxConcurrentPerUser
integer
definition
required
Journey/automation graph definition. Nodes are typed (trigger/action/branch/wait/waitForEvent/timeWindow).
object
nodes
required
Array<object>
object
key
additional properties
any
key
additional properties
any
Responses
Section titled “Responses”Created automation (status=draft) plus version=1 and field warnings.
Media typeapplication/json
object
automation
A journey row surfaced as an automation.
object
id
string
projectId
string
name
string
description
string | null
triggerEventName
string
maxConcurrentPerUser
integer
status
string
activeVersionId
string | null
entryConditionJson
string | null
reEntryMode
string
reEntryIntervalSeconds
integer | null
exitConditionJson
string | null
createdAt
string
updatedAt
string
key
additional properties
any
version
integer
warnings
Array<string>
Missing/invalid path input (e.g. projectId) or invalid JSON body.
Media typeapplication/json
object
error
required
Human-readable error message.
string
message
string
Examplegenerated
{ "error": "example", "message": "example"}Not authenticated (401 via requireAuthenticated) or insufficient project role (403).
Media typeapplication/json
object
error
required
Human-readable error message.
string
message
string
Examplegenerated
{ "error": "example", "message": "example"}Zod validation or definition/graph validation failed.
Media typeapplication/json
object
error
required
string
message
string
errors
Array<string>
issues
Array<object>
object
key
additional properties
any
draftId
string
key
additional properties
any
Examplegenerated
{ "error": "example", "message": "example", "errors": [ "example" ], "issues": [ {} ], "draftId": "example"}