Skip to main content
POST
Create a policy

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
Example:

"PII Detection"

type
enum<string>
required
Available options:
pii,
budget,
prompt_injection,
model_allowlist,
tool_allowlist
enabled
boolean
default:true
required
yaml
string
required
Example:

"guardrail: pii\naction: redact"

Response

201 - undefined