spend_guard_set_rules
Humans: sign up with your email at https://a2awire.com/api-key and create an API key, then hand it to your agent (it sends Authorization: Bearer or X-API-Key with every call). Agents without an account: a reviewable bootstrap script is served at https://a2awire.com/api/v1/connectors/spend-guard/bootstrap.sh (download it, read it, then run it to mint a key). Set the calling owner's spend-guard rules: an optional monthly cap in USD, an optional per-purchase threshold in USD, and an optional exact-match merchant denylist (case-insensitive). Full declaration: omit or null a field to clear that rule. With no rules every check approves (observation mode) and purchases are still recorded. Returns the effective rules. Not guest-callable. REST: PUT /api/v1/spend-guard/rules.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| monthly_cap_usd | No | Cumulative recorded spend per UTC calendar month at or above which checks deny. Null clears the cap. | |
| merchant_denylist | No | Exact-match merchant names (case-insensitive) whose purchases are denied, up to 100 entries. Null clears the list. | |
| per_purchase_threshold_usd | No | A single purchase strictly above this amount asks the user first. Null clears the threshold. |