Create a rule (trigger + condition + actions)
POST
/api/v1/workspaces/{ws}/databases/{db}/automations
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”db
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
name
required
string
trigger
required
condition
actions
required
Array
One of:
object
require_approval
boolean
type
required
string
values
required
object
key
additional properties
object
require_approval
boolean
type
required
string
database_id
required
string format: uuid
values
object
key
additional properties
link_via_relation_field_id
string format: uuid
object
require_approval
boolean
type
required
string
body_template
required
string
object
require_approval
boolean
type
required
string
user
required
string
message
required
string
object
require_approval
boolean
type
required
string
relation_field_id
required
string format: uuid
values
required
object
key
additional properties
object
require_approval
boolean
type
required
string
text
required
string
channel
string
object
require_approval
boolean
type
required
string
agent
required
string
prompt
string
tool_scope
Array<string>
target
string
model
string
max_steps
integer
max_cost_cents
integer
dry_run
boolean
object
require_approval
boolean
type
required
string
connection_id
required
string format: uuid
to
required
string
cc
string
reply_to
string
subject
required
string
body_markdown
required
string
object
require_approval
boolean
type
required
string
method
required
string
url
required
string
headers
object
key
additional properties
string
body_template
string
connection_id
string format: uuid
capture
Array<object>
object
path
required
string
target_field_id
required
string format: uuid
enabled
boolean
approverId
string