{"uid":"cap_K8dsRi4vx6X94K9CUc74T","slug":"x402-policy-api-71d1785a","name":"x402-policy API","description":"AI agent spending policy via x402 v2 micropayments on Base Mainnet.","url":"https://x402-api-seven.vercel.app/v1/check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object"},"responseSchema":{"type":"json","format":null,"example":{"reason":"Within policy","allowed":true,"calls_today":24,"trust_score":0.87,"daily_spent_usd":1.23,"daily_budget_usd":10}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_7L9G9W_VRxoh4mFniXuJM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Checks whether an AI agent's spending action is within its configured policy, returning allowance status, trust score, and daily budget utilization.","exampleAgentPrompt":"Before you make that $0.001 USDC payment, check whether I'm still within my spending policy — my daily budget is $10 and I want to know my current trust score and how many calls I've made today.","exampleUseCases":null,"resultDescription":"Returns a JSON object with: allowed (boolean indicating if the action is within policy), reason (plain-text explanation), calls_today (integer count of calls made today), trust_score (float 0–1 indicating agent trustworthiness), daily_spent_usd (amount spent today), and daily_budget_usd (the configured daily cap).","failureModes":["Payment not included or invalid x402 payment header — returns 402 Payment Required","Daily budget exceeded — returns allowed: false with reason explaining limit reached","Trust score too low — returns allowed: false with reason indicating insufficient trust","Malformed request body — returns 400 Bad Request","Network or Vercel cold-start timeout — returns 5xx error"],"whenToPreferThis":"Use this endpoint when an AI agent needs to self-govern its spending behavior before executing x402 micropayments on Base Mainnet — especially when enforcing daily budget caps, tracking cumulative spend, or evaluating whether an autonomous agent's trust score meets policy thresholds. Prefer this over generic rate-limiters when the context is USDC micropayments and you need both a binary allow/deny decision and rich telemetry (trust score, daily spend).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-03T00:35:12.456Z","isFirstParty":false,"canonicalSlug":"x402-policy-api-71d1785a"}