organization-guardrails
Create Organization Guardrail
Mandate a guardrail across the organization. Organization owners and admins only.
The guardrail runs on every request from the workspaces it is scoped to, in addition to whatever the caller asked for, with the stricter of the two settings applying to a profile both name. Set applies_to_all_workspaces for it to cover workspaces created later; otherwise a new workspace inherits nothing and the entry runs only in the workspaces workspace_ids lists.
post/v1/organizations/me/guardrails
Request body
Example request
{
"applies_to_all_workspaces": true,
"credential": "sk-guardrails-...",
"mode": "block",
"profile": "prompt-injection",
"url": "https://guardrails.internal.example/validate"
}Response
Successful Response