{"uid":"cap_A79B1pD7jq1XWtKmH0-FC","slug":"x402-trust-layer-rail-optimizer-route-782c6f66","name":"x402 Trust Layer Rail Optimizer Route","description":"68 paid x402 trust infrastructure APIs: guard, semantic escrow, mandate diff, certified seller network, KYM, mandates, compliance, disputes, and orchestration.","url":"https://x402trustlayer.xyz/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":"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.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_PgA6JDFam-1VwXmkROEDN","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 routes HTTP rail requests through x402 trust infrastructure, returning an allowed/denied decision with a summary after payment settlement.","exampleAgentPrompt":"Run an x402 rail optimizer check on an HTTP GET request — I need to know if it's allowed and get a summary back after trust layer settlement.","exampleUseCases":null,"resultDescription":"A JSON object containing: 'ok' (boolean indicating call success), 'allowed' (boolean indicating whether the request is permitted through the rail), and 'summary' (human-readable explanation of the routing/settlement outcome) — returned after x402 payment is settled.","failureModes":["Payment not settled — x402 micropayment of $0.04 USDC not completed, request blocked","Invalid HTTP method supplied — only GET, HEAD, DELETE are accepted (POST/PUT/PATCH will fail schema validation)","Missing required 'type' field set to 'http' — request rejected","Input type not 'http' — const mismatch causes rejection","Network or trust layer unavailability — service returns error or no response","Malformed input object — additionalProperties present on input object causes schema rejection"],"whenToPreferThis":"Choose this endpoint when you need to route or authorize an HTTP GET, HEAD, or DELETE request through the x402 trust infrastructure specifically, especially when rail optimization and post-settlement compliance validation are required. Prefer this over generic access-control or mandate-verification endpoints when the goal is route-level optimization with a paid trust decision.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T06:37:04.977Z","isFirstParty":false,"canonicalSlug":"x402-trust-layer-rail-optimizer-route-782c6f66"}