GuardRail

Create governance policy

Create a behavioral governance policy. Rules are evaluated deterministically at check time. Supported operators: eq, starts_with, contains, gt, lt, and, or, not. FREE.

post/api/guardrail/policies

Request

  • Base URL: https://plith.ai
  • URL: https://plith.ai/api/guardrail/policies
  • Auth: none required

Request body

namestring required

Unique policy name within the org.

descriptionstring
action_typesstring[]

Optional. Action types this policy applies to. Used for GIN index optimization to avoid loading irrelevant policies.

priorityinteger

Higher priority policies are evaluated first.

Example request

{
  "name": "no-outreach-build-mode",
  "rules": [
    {
      "operator": "eq",
      "field": "type",
      "value": "send_email"
    }
  ]
}

Response

Policy created

cross_productstring
request_idstring
credits_usedinteger
credits_remaininginteger
fallback_behaviorstring

Example response

{
  "fallback_behavior": "proceed_with_default_allow"
}

Changes

No recorded changes to this operation across all 1 revision of this API.