{"uid":"cap_veC4KL12SSzjkfyFwgSG5","slug":"x-pay-echo-921ec111","name":"X Pay Echo","description":"Pay-per-request utility APIs powered by x402 using USDC on Base.","url":"https://www.api-xpay.com/x402/echo","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"queryParams":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"echo":"hello","asset":"USDC","network":"base","success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MNfRwnJ44tdj5l-KxzWxk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Echoes back a submitted payload as a simple test of the x402 pay-per-request infrastructure using USDC on Base.","exampleAgentPrompt":"Send a test echo through X Pay's x402 endpoint with a simple JSON body like {\"message\": \"hello\"} as a POST with JSON body type, so I can confirm my USDC micropayment integration on Base is working correctly.","exampleUseCases":[{"title":"Verify x402 payment flow end-to-end","prompt":"Send a test POST request to X Pay's echo endpoint with JSON body {\"ping\": true} to confirm my x402 USDC payment on Base processes successfully and I get a success response back."},{"title":"Debug micropayment wallet configuration","prompt":"I just set up my Base wallet for x402 pay-per-request APIs — can you fire a quick echo call through X Pay with a simple body like {\"test\": \"wallet-check\"} and tell me whether success comes back true?"},{"title":"Validate x402 integration before production deploy","prompt":"Before I go live, run an echo test through X Pay's x402 API using a POST with JSON body {\"env\": \"staging\", \"check\": \"preflight\"} so I can confirm the USDC payment and response round-trip are both working."}],"resultDescription":"Returns a JSON object confirming the echo of the submitted input, the payment asset (USDC), the network (Base), and a boolean success flag. Example: {\"echo\": \"hello\", \"asset\": \"USDC\", \"network\": \"base\", \"success\": true}.","failureModes":["Insufficient USDC balance causes payment to fail before the request is processed","Malformed body type enum (not json/form-data/text) returns a validation error","Missing required fields (type, method, bodyType, body) cause schema rejection","Network congestion on Base delays payment confirmation","Invalid HTTP method (not POST/PUT/PATCH) causes a 400-level rejection"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, cheap ($0.001 USDC) end-to-end test of the x402 pay-per-request protocol on Base, confirming both the micropayment flow and the HTTP round-trip work correctly. It is ideal for integration testing, wallet validation, or debugging x402 setup before calling more expensive or stateful endpoints.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:45:12.213Z","isFirstParty":false}