Skip to main content
POST
Create a guardrail policy.

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
effect
enum<string>
required
Available options:
deny,
require_approval,
flag
reason
string
required
Required string length: 1 - 500
description
string
Maximum string length: 500
match
object
conditionCel
string | null
Maximum string length: 2000
enforcement
enum<string>
default:enforce
Available options:
shadow,
enforce
enabled
boolean
default:true
effectConfig
object

Response

OK

Resource object.

{key}
any