Policy

Evaluate safety policy against a request

Changed on
post/api/v1/policy/evaluate

Request

  • Base URL: http://localhost:8081
  • URL: http://localhost:8081/api/v1/policy/evaluate
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Headers

X-Tenant-IDstring required

Tenant isolation header (required on all protected routes).

Request body

job_idstring
topicstring
tenantstring
org_idstring
team_idstring
capabilitystring
risk_tagsstring[]
contextobject
labelsobject

Response

Policy evaluation result

decision'ALLOW' | 'DENY' | 'QUARANTINE' | 'REQUIRE_APPROVAL'
reasonstring
rule_idstring nullable
constraintsobject nullable

Changes

    • info

      added the non-success response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status