Policies

What a preset would change

Compiles a preset against this agent and reports which fields it would widen — loosen relative to what the agent can already do.

Widening detection errs toward flagging: a false positive costs one extra approval, a false negative is a limit raised without review. Enabling a capability widens; disabling does not. Raising a cap widens; setting a first cap does not, because absent means unlimited.

post/v1/agents/{agent_id}/policy-preset/preview

Request

  • Base URL: https://api.1claw.co
  • URL: https://api.1claw.co/v1/agents/{agent_id}/policy-preset/preview
  • Auth: HTTP bearer

Path parameters

agent_idstring uuid required

Request body

presetstring required

Example request

{
  "preset": "small-business-spender"
}

Response

Proposal

preset_slugstring
guardrailsobject
action_approval_policyobject
access_policyobject
widensstring[]

Fields this preset would loosen. Show these, not a generic warning.

requires_guardrail_approvalboolean
explanationstring

Changes

No recorded changes to this operation across all 2 revisions of this API.