# Claw-in-a-Box Spend Policy Guard

> Claw-in-a-Box Spend Policy Guard is a paid API for AI agents from api.clawinabox.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Evaluates a proposed spend action against a configured spend policy and returns a verdict (allow/deny) in real time

## Facts

- Endpoint: POST https://api.clawinabox.xyz/paid/v1/guard/check
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/claw-in-a-box-spend-policy-guard-63bac98a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Ans1F1aXdORzcX8zBTelT

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability claw-in-a-box-spend-policy-guard-63bac98a -d '<json body>'
```

Example prompt: Before I submit this $45 payment to 'StreamFlix' under the entertainment category, run it through the Claw-in-a-Box spend-policy guard and tell me if it gets an allow or deny verdict.

## When to prefer this

Use this endpoint when you need a real-time pre-spend policy verdict before executing a payment or authorizing a transaction, especially in agentic or automated workflows where enforcing spend rules programmatically is required. Prefer this over manual rule checks or post-hoc auditing when you need an instant allow/deny gate.

## Known failure modes

- Invalid or malformed JSON body returns 4xx error
- Missing required spend fields causes validation rejection
- Policy not configured or misconfigured returns error verdict
- Payment of $0.01 USDC required per call; unpaid requests return 402 Payment Required
- Network timeout may cause no verdict to be returned

## How this service works

Spend-policy verdict for AI agents: POST a proposed spend, get allow/review/deny with the exact rules that fired (per-tx caps, per-agent daily ledger, destination allowlists, time windows) - 'review' can page a human on Telegram for approval before the agent proceeds. Pay per call.

## Output

A verdict object indicating whether the proposed spend action is allowed or denied under the configured policy, along with the matched rule or reason for the decision.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "agent_id",
      "amount"
     ],
     "properties": {
      "wait": {
       "type": "boolean",
       "description": "if the verdict is 'review', block until a human approves/denies on Telegram (default 120s timeout)"
      },
      "amount": {
       "type": "number",
       "description": "proposed spend amount"
      },
      "policy": {
       "type": "string",
       "description": "preset name (conservative|standard|permissive) or inline policy object"
      },
      "agent_id": {
       "type": "string",
       "description": "stable id of the spending agent (per-agent daily ledger)"
      },
      "destination": {
       "type": "string",
       "description": "optional payee / merchant identifier checked against allowlists"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/claw-in-a-box-spend-policy-guard-63bac98a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.clawinabox.xyz](https://www.zero.xyz/host/api.clawinabox.xyz/llms.txt)
