{"uid":"cap_B45tGQsJFRlXY94M7d_pN","slug":"x402-agent-suite-pro-payment-intent-compiler-389a553f","name":"x402 Agent Suite Pro — Payment Intent Compiler","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/payment-intent/compile","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","status","allowed","summary","withinBudget","totalEstimatedUsdc","maxBudgetUsdc","currentEndpointCostUsdc","recommendedFirstStep","planSummary","steps","executionOrder","suiteBaseUrl"],"properties":{"ok":{"type":"boolean"},"steps":{"type":"array","items":{"type":"object","required":["step","path","priceUsdc","purpose"],"properties":{"path":{"type":"string"},"step":{"type":"number"},"purpose":{"type":"string"},"priceUsdc":{"type":"number"}}}},"status":{"type":"string"},"allowed":{"type":"boolean"},"summary":{"type":"string"},"planSummary":{"type":"string"},"suiteBaseUrl":{"type":"string"},"withinBudget":{"type":"boolean"},"maxBudgetUsdc":{"type":"number"},"executionOrder":{"type":"array","items":{"type":"string"}},"totalEstimatedUsdc":{"type":"number"},"recommendedFirstStep":{"type":"string"},"currentEndpointCostUsdc":{"type":"number"}}}}}}},"responseSchema":{"type":"json","example":{"ok":true,"allowed":true,"summary":"Paid response after x402 settlement"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.15","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.15/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.15","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jabaayGhAqTHEHxALdcMd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.15","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compiles a multi-step x402 payment plan for a given HTTP request type, estimating total USDC costs and generating an ordered execution pipeline for AI agent fleet operations.","exampleAgentPrompt":"Before my agent fleet runs a GET request through the x402 suite, compile me a payment intent plan so I can see the step-by-step USDC cost breakdown and execution order, and confirm it fits within my $5 max budget.","exampleUseCases":[{"title":"Pre-flight budget check for agent fleet","prompt":"Before my agent fleet fires off a series of x402 API calls using GET requests, can you compile a payment intent plan and tell me the total estimated USDC cost and whether it's within my $2 budget?"},{"title":"Execution order planning for pipeline","prompt":"I need to orchestrate a multi-step x402 workflow using HEAD requests — compile the payment intent so I get back the recommended first step and the full execution order before anything runs."},{"title":"Cost audit before deleting resources","prompt":"My agent is about to issue a DELETE request through the x402 suite — can you compile the payment intent first so I can see the per-step USDC prices and a plain-language summary of the plan?"}],"resultDescription":"Returns a JSON object with: ok/allowed booleans indicating plan validity and budget compliance, a human-readable summary and planSummary, an array of numbered steps with path, priceUsdc, and purpose for each, a recommended first step, execution order array, total estimated USDC, current endpoint cost, max budget, and the suite base URL.","failureModes":["Missing required 'input' object returns validation error","Invalid HTTP method (e.g. POST/PUT not in allowed enum) returns schema rejection","Budget exceeded flag (withinBudget: false) when estimated cost surpasses maxBudgetUsdc","x402 payment settlement failure returns 402 status before plan is returned","Malformed queryParams structure causes request rejection","Service unavailability on Railway deployment returns 5xx"],"whenToPreferThis":"Use this endpoint when an AI agent needs to pre-plan and cost-estimate a sequence of x402 micropayment API calls before committing any USDC — especially useful for budget-gated pipelines, fleet orchestration, or any workflow where step ordering and total cost must be validated before execution begins. Prefer this over direct execution endpoints when auditability, budget compliance, or pipeline sequencing is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:43:34.768Z","isFirstParty":false}