Set an agent's payment guardrails
Human owners and admins only. These are the numbers every payment decision is measured against: the per-payment cap, the daily limit, the recipient allowlist, whether a passkey is required at all, and whether the agent may hold a spending grant. An agent that could set them would be setting its own ceiling.
Omitted fields are left alone; null clears a cap, the allowlist or the grant TTL. A change that widens anything (raising or clearing a cap, turning pay or grant mode on, turning a passkey or approval requirement off, a longer grant TTL, or naming a recipient that is not already on the allowlist) needs X-Auth-Confirm with a re-auth token for purpose security.agent_pay_guardrails.widen (strong factor: a password is refused once a passkey or TOTP is enrolled). Tightening needs no step-up. Audited agent.pay_guardrails_updated.
No allowlist is not a wildcard: null and [] are enforced alike, so an agent with pay_require_passkey: false and no allowlist can pay no one unattended.
Request
- Base URL: https://api.1claw.co
- URL: https://api.1claw.co/v1/agents/{agent_id}/pay/settings
- Auth: HTTP bearer
Path parameters
Headers
Required for a widening change; see above.
Request body
Response
Updated guardrails
Changes
No recorded changes to this operation across all 1 revision of this API.