organization-guardrails
Create Organization Guardrail
Changed onMandate 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/api/v1/organizations/me/guardrails
Request
- The document declares no server URL.
- Auth: one of:
- API key in header Otari-Key
- API key in header x-api-key
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
Changes
- info
added the optional property
to the response with the status
- info
- info
added the new optional request property
- info
added the required property
to the response with the status
- info