POST /api/v1/guardrails
Create a guardrail rule.Request Body
| Field | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Unique guardrail key |
name | string | Yes | Guardrail name |
description | string | No | Description of the constraint |
severity | string | No | "hard" (blocks decision, default) or "soft" (warns only) |
expressionAst | object | No | Expression AST defining the guardrail condition |
status | string | No | "active" (default) or "paused" |
Example
Response
GET /api/v1/guardrails
List all guardrails for the tenant.Response
Returns an array of guardrail objects.PUT /api/v1/guardrails
Update a guardrail by key.Request Body
| Field | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Guardrail key to update |
name | string | No | Updated name |
description | string | No | Updated description |
severity | string | No | Updated severity |
expressionAst | object | No | Updated expression AST |
status | string | No | Updated status |
DELETE /api/v1/guardrails
Delete a guardrail by key.Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Guardrail key to delete |
204 No Content