Skip to main content
POST
Creates a saved policy directly. It is enabled by default; use enabled: false to configure it without enabling evaluation. Duplicate built-in types return 409; exceeding 10 custom rules returns 400. See the Guardrails overview for shared schemas and runtime limitations.
string
required
Bearer workspace API key. The key needs write scope.
string
required
Agent UUID.
string
required
One of the six check types.
object
required
Complete check-specific configuration. See configuration schemas.
boolean
Defaults to true on creation.
array
Unique supported channel names. Omit or send an empty array on creation for all channels.

Response

string
Policy UUID.
string
Owning workspace UUID.
string
Agent UUID.
string
Check type from the catalogue.
object
Check-specific definition. See the configuration schemas.
boolean
Whether the policy is enabled.
array
Channel names, or null for all channels.
datetime
Creation timestamp.
datetime
Last update timestamp.