{"uid":"cap_2DYHQNjuBnWVojVGDCv5F","slug":"code402-gateway-echo-b8361c1e","name":"code402 Gateway Echo","description":"Machine-payable APIs over x402 (HTTP 402 + USDC) on the open M2M/1 protocol. Non-custodial: payments settle direct to seller wallets.","url":"https://gateway.code402.dev/api/echo","method":"POST","headers":{},"bodySchema":null,"responseSchema":null,"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_Aw388cSgyl2x6HFoxyZrQ","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 POST request payload over an x402 machine-payable micropayment channel, settling $0.001 USDC directly to the seller wallet.","exampleAgentPrompt":"Send a test payload through the code402 gateway echo endpoint to confirm my x402 USDC micropayment integration is working — use the message 'hello world' as the body.","exampleUseCases":[{"title":"Integration smoke test for x402 client","prompt":"Send a quick echo call through the code402 gateway to confirm my x402 client is correctly attaching the USDC payment header and getting a valid response back — use the body {\"test\": true}."},{"title":"Verifying non-custodial payment settlement","prompt":"I want to confirm that a $0.001 USDC micropayment settles directly to the seller wallet with no custodian involved — can you ping the code402 echo endpoint with a small payload and show me the payment receipt?"},{"title":"Agent-to-agent payment channel validation","prompt":"My AI agent needs to prove it can autonomously pay for API calls using x402 — run an echo test through code402 gateway with the payload {\"agent\": \"demo\", \"step\": 1} so I can verify the M2M payment flow works before wiring it into production."}],"resultDescription":"The endpoint returns the echoed POST body along with HTTP 200 confirmation after a successful x402 USDC micropayment of $0.001 has been processed and settled non-custodially to the seller wallet.","failureModes":["Insufficient USDC balance — payment rejected with HTTP 402 and payment-required details","Missing or malformed x402 payment header — request rejected before processing","Network timeout during payment settlement — uncertain whether payment cleared","Invalid wallet address configuration — payment cannot route to seller","Malformed POST body — echo may fail or return error"],"whenToPreferThis":"Choose this endpoint when you need a minimal, low-cost ($0.001 USDC) way to validate that your x402 machine-payable API client is correctly constructed — particularly for testing payment header generation, non-custodial USDC settlement flows, or M2M protocol compliance without invoking a more expensive or side-effectful endpoint.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:37:27.702Z","isFirstParty":false}