Skip to main content
POST
Create an automation rule.

Authorizations

Authorization
string
header
required

WorkOS session access token (human dashboard sessions) on the control plane.

Headers

X-Spillway-Org
string<uuid>
Example:

"601c5d19-0b88-42f7-acda-d1d31abd100d"

Body

application/json
name
string
required
Required string length: 1 - 120
priority
integer
required
Required range: 0 <= x <= 100000
triggerType
enum<string>
required
Available options:
alert_fired,
approval_decided,
key_created,
budget_crossed,
schedule_cron
action
object
required
condition
object
state
enum<string>
default:notify_only
Available options:
active,
notify_only,
disabled
stopOnMatch
boolean
default:true
rateCapPerHour
integer
default:10
Required range: 1 <= x <= 100000
scheduleCron
string | null
Maximum string length: 120
Pattern: ^\s*@every\s+\d+[smh]\s*$
notifyOnlyUntil
string<date-time> | null

Response

OK

Resource object.

{key}
any