OpenAPI 3.1.0raw.githubusercontent.com2026-08-1126151911.7 MB

e76f43df00e9

Guardrail Rules

Create a guardrail rule

Creates a guardrail rule with metadata and optional evaluator, plugin, timeout, and matching configuration. Rules default to disabled when enabled is omitted.

post/v2/guardrail-rules

Request body

display_namestring required
descriptionstring
project_idstring

Optional project scope. Omit for a workspace-wide rule.

enabledboolean

Whether the rule is active. Defaults to false when omitted.

timeoutinteger

Response

OK