{"uid":"cap_FTyimliuIZAzmI_YIdXDn","slug":"x402-agent-suite-spend-governor-check-caa392f7","name":"x402 Agent Suite Spend Governor Check","description":"24 paid x402 infrastructure APIs for AI agent fleets: buy advisor, audition coach, guard, proxy, MPP, attestations, and pipeline orchestration.","url":"https://x402-agent-suite-production.up.railway.app/api/spend-governor/check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["ok","allowed","summary"],"properties":{"ok":{"type":"boolean"},"allowed":{"type":"boolean"},"summary":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"ok":true,"allowed":true,"summary":"Paid response after x402 settlement"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.030000","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.030000/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sC2Rm6z8ihs_LAL4eqjnl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates whether a proposed spend action falls within a configured policy's daily cap, per-call cap, and allowed host restrictions before authorizing payment.","exampleAgentPrompt":"Before calling that paid API endpoint, check if spending $0.05 USDC is within policy for agent 'agent-42' targeting api.weatherprovider.com — the policy allows $2.00/day, $0.10 per call, and only permits requests to api.weatherprovider.com and api.dataprovider.com.","exampleUseCases":null,"resultDescription":"Returns a decision indicating whether the proposed spend is within the configured policy limits, including whether the estimated cost is below the per-call cap, whether the daily cap would be exceeded, and whether the target URL's host is in the allowed list.","failureModes":["Policy fields missing (dailyCapUsdc, perCallCapUsdc, or allowedHosts absent) — returns 400 validation error","Target host not in allowedHosts list — returns denial/rejection response","Estimated cost exceeds perCallCapUsdc — returns over-limit response","Daily cap would be exceeded by this spend — returns budget exhausted response","Invalid network value — may return 400 or unknown network error","Service unavailable — returns 5xx error"],"whenToPreferThis":"Use this endpoint when you need a lightweight, policy-enforced pre-authorization check before an AI agent commits to a paid API call. It is specifically designed for autonomous agent workflows where you want to enforce daily budget caps, per-call spending limits, and host allowlists without executing the actual payment. Prefer this over general budget tracking tools when you need a structured policy object with allowedHosts enforcement in the x402 agent suite ecosystem.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:42:00.793Z","isFirstParty":false,"canonicalSlug":"x402-agent-suite-spend-governor-check-caa392f7"}