{"uid":"cap_8Js47-POGGLeJ0NLMYzYD","slug":"x402-guard-pre-request-validator-dfc6f22f","name":"x402 Guard Pre-Request Validator","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/guard/pre-x402","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.05","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lbrX07zgDPdbB94vFaPff","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates and gates HTTP requests (GET, HEAD, DELETE) before x402 payment settlement, returning an allow/deny decision with a summary.","exampleAgentPrompt":"Before my agent sends a GET request to that paid API, run the x402 guard check on it to see if it's allowed — I don't want to waste USDC if the request will be blocked.","exampleUseCases":null,"resultDescription":"A JSON object with three fields: `ok` (boolean indicating the guard ran successfully), `allowed` (boolean indicating whether the request is permitted to proceed), and `summary` (a human-readable string explaining the allow or deny decision).","failureModes":["Missing required `input.type` or `input.method` fields returns a 400 validation error","Unsupported HTTP method (e.g. POST or PUT) in the method enum returns a validation error","Payment not settled or x402 header missing may result in a 402 Payment Required response","Malformed request body returns a schema validation error","Service unavailability on Railway returns 503"],"whenToPreferThis":"Use this endpoint when you need to pre-screen an HTTP GET, HEAD, or DELETE request before committing to an x402 micropayment settlement — particularly in agentic pipelines where you want to avoid wasting USDC on requests that will be rejected downstream. Prefer this over post-hoc validation when operating in cost-sensitive or high-throughput agent fleet scenarios.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:44:57.562Z","isFirstParty":false}