{"uid":"cap_PKVZ1kkTK78FbW6gNyxka","slug":"x402-rail-optimizer-route-ae42ca43","name":"x402 Rail Optimizer Route","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/rail-optimizer/route?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.04","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.04/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.04","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4q1NopR6fcTzcsruwbEfS","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.04","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Optimizes and validates routing decisions for HTTP GET/HEAD/DELETE requests through the x402 payment-gated infrastructure, returning an allow/deny decision with a summary.","exampleAgentPrompt":"Check whether a GET request should be routed through the x402 rail optimizer and give me the allow/deny decision with a summary.","exampleUseCases":[{"title":"Agent fleet request gating","prompt":"Before my agent fleet sends out GET requests to external APIs, run them through the rail optimizer to check if each one is allowed and get a routing summary back."},{"title":"Pre-flight route validation","prompt":"I need to validate whether a HEAD request is permitted by the x402 route optimizer before my agent actually dispatches it — can you check and tell me if it's allowed?"},{"title":"Safe DELETE authorization check","prompt":"My agent is about to fire a DELETE request — can you run it through the x402 rail optimizer first to confirm the route is authorized and get a summary of the decision?"}],"resultDescription":"A JSON object containing a boolean 'ok' field indicating request success, a boolean 'allowed' field indicating whether the route is permitted, and a 'summary' string describing the routing decision outcome after x402 payment settlement.","failureModes":["Payment settlement failure if x402 USDC payment of $0.04 is not completed, returning a 402 Payment Required response","Invalid HTTP method supplied (only GET, HEAD, DELETE are accepted) returns a 400 or validation error","Missing required 'input' object or 'type'/'method' fields causes schema validation failure","Network timeout or Railway infrastructure downtime results in a 503 or connection error","Unsupported request type (not 'http') causes const validation rejection"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, x402-native route authorization check specifically for idempotent HTTP methods (GET, HEAD, DELETE) within an AI agent fleet context. It is ideal when you want a fast allow/deny routing decision with a human-readable summary before dispatching requests, and when your infrastructure already integrates with x402 payment flows. Prefer it over generic API gateways when operating within the x402 ecosystem and needing per-call micropayment-gated routing decisions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-25T18:30:32.312Z","isFirstParty":false,"canonicalSlug":"x402-rail-optimizer-route-ae42ca43"}