{"uid":"cap_O6E8wGwHd0E3DQGRaJWvF","slug":"saferoute-agent-payment-route-f059f643","name":"SafeRoute Agent Payment Route","description":"Workflow automation, Stripe and API integration repair, and x402 payment diagnostics. Choose a fixed scope and review it before payment.","url":"https://api.usesaferoute.com/v1/agent-payment-route?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"taker":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"buyToken":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"deadline":{"type":"string","format":"date-time","description":"Optional route deadline; defaults to the requirement timeout and cannot exceed it."},"intentId":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","maxLength":128,"minLength":16},"paymentId":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","maxLength":128,"minLength":16},"quoteMode":{"type":"string","const":"exactBuy"},"recipient":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"sellToken":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"referralCode":{"type":"string","pattern":"^[a-zA-Z0-9_-]+$","maxLength":64,"minLength":3},"executionMode":{"type":"string","const":"standard"},"sourceAgentId":{"type":"string","maxLength":128,"minLength":1},"paymentResource":{"type":"object","required":["url"],"properties":{"url":{"type":"string","format":"uri","pattern":"^https://"},"mimeType":{"type":"string","maxLength":128},"description":{"type":"string","maxLength":500}}},"maximumSellAmount":{"type":"string","pattern":"^\\d+$"},"targetUsdcBalance":{"type":"string","pattern":"^\\d+$","description":"Optional post-funding Base USDC balance target. Must cover the current payment and stay within the active launch cap."},"paymentRequirements":{"type":"object","required":["scheme","network","asset","amount","payTo","maxTimeoutSeconds"],"properties":{"asset":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"extra":{"type":["object","null"]},"payTo":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"},"amount":{"type":"string","pattern":"^\\d+$"},"scheme":{"type":"string","const":"exact"},"network":{"type":"string","const":"eip155:8453"},"maxTimeoutSeconds":{"type":"integer","maximum":3600,"minimum":1}},"additionalProperties":false}}},"responseSchema":{"type":"json","example":{"quote":{},"status":"ok","service":"safe_agent_payment_route","quoteMode":"exactBuy","buyerAction":{},"paymentIntent":{},"receiptSignature":{}}},"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_RbeerXxPdAODb27UA1uG2","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":"Routes and executes x402 payments for AI agents on Base, producing a swap quote, payment intent, and receipt signature for USDC-based service payments.","exampleAgentPrompt":"Route an x402 payment for me on Base: I need to pay for resource at https://api.example.com/data, selling USDC (0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA) to buy USDC (0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) up to 1000000 units, sending to recipient 0xAbCd1234...5678, with payment ID pay_abc123xyz456def7 and intent ID intent_abc123xyz456def7 from agent source my-agent-v1.","exampleUseCases":[{"title":"Agent pays for gated data API","prompt":"My agent needs to access a paid API at https://data.example.com/feed that requires an x402 payment of 50000 USDC units on Base — can you route the payment with sell token 0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA, recipient 0xAbCd1234AbCd1234AbCd1234AbCd1234AbCd1234, payment ID pay_feed99zz112233aa and intent ID intent_feed99zz112233aa, max sell 60000, from agent my-data-agent?"},{"title":"Automated workflow payment execution","prompt":"Execute an x402 payment on Base for my automated workflow agent: the resource is https://workflow.example.com/run, payment amount 100000 to payTo address 0x1111222233334444555566667777888899990000, sell token 0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA, buy token 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, payment ID pay_wflow11223344556 and intent ID intent_wflow11223344556, taker 0xAAAABBBBCCCCDDDDEEEEFFFF0000111122223333, source agent workflow-bot-v2."},{"title":"Swap-backed payment for AI inference API","prompt":"I want to pay for an AI inference endpoint at https://inference.example.com/generate using SafeRoute on Base — sell up to 200000 units of 0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA, buy token 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, payment ID pay_infer77889900aabbcc and intent ID intent_infer77889900aabbcc, recipient 0x9999888877776666555544443333222211110000, agent ID inference-agent-1."}],"resultDescription":"Returns a JSON object containing: a swap quote with pricing details, a payment intent for the Base transaction, buyer action instructions for completing the payment, and a receipt signature confirming the routed payment — all under a status field indicating success or failure.","failureModes":["Invalid Ethereum address format for taker, recipient, sellToken, buyToken, or payTo — returns validation error","Payment requirements missing required fields (scheme, network, asset, amount, payTo, maxTimeoutSeconds) — returns schema error","maximumSellAmount insufficient to cover the payment — returns quote failure","Deadline exceeds the requirement timeout — returns deadline error","targetUsdcBalance exceeds active launch cap — returns cap exceeded error","Network must be eip155:8453 (Base); other networks return unsupported network error","paymentId or intentId too short (min 16 chars) or too long (max 128 chars) — returns validation error","Downstream DEX liquidity insufficient for swap — returns no route found error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to autonomously fulfill an x402 payment requirement on the Base network using USDC, especially when a token swap may be needed to source funds. It provides an all-in-one route: quote, payment intent, and signed receipt. Prefer it over raw blockchain transactions when you need payment protection, swap-backed funding, and a verifiable receipt in a single call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T18:37:16.660Z","isFirstParty":false,"canonicalSlug":"saferoute-agent-payment-route-f059f643"}