{"uid":"cap_4JULzq-7I9wig7fxJZsMn","slug":"402utils-echo-endpoint-6d712f68","name":"402utils Echo Endpoint","description":"Echoes back the JSON body you send, with a server timestamp. Useful for verifying your x402 client integration end to end.","url":"https://402utils.com/v1/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","description":"Any JSON object; it is returned verbatim in the response.","additionalProperties":true},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["echo","ts"],"properties":{"ts":{"type":"string","format":"date-time","description":"Server time (ISO 8601)."},"echo":{"type":"object","description":"The JSON object you sent, unchanged.","additionalProperties":true}},"additionalProperties":false}}}}},"responseSchema":{"type":"json","example":{"ts":"2026-07-03T12:00:00.000Z","echo":{"msg":"hello farm"}}},"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_Y2VxNJMJZ5RW50O88CeLw","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 any JSON payload you send, along with a server-generated ISO 8601 timestamp, for end-to-end x402 client integration testing.","exampleAgentPrompt":"Send this JSON object — {\"hello\": \"world\", \"test\": 123} — to the 402utils echo endpoint and confirm it comes back unchanged along with the server timestamp.","exampleUseCases":[{"title":"Verify x402 micropayment client setup","prompt":"I need to test whether my x402 payment client is working correctly — can you send a test JSON payload to the echo endpoint and show me that the response includes both the exact data I sent and a server timestamp?"},{"title":"Debug request serialization in production","prompt":"We're having trouble with our x402 integration in production and I want to isolate whether the issue is with how we're sending requests or receiving responses — can you echo back a complex nested JSON object and compare it to what we started with?"},{"title":"Validate end-to-end payment flow","prompt":"Before we integrate this paid API into our agent workflow, I want to confirm that our HTTP client can successfully handle x402 micropayments from start to finish — can you make a test call and verify the round-trip works?"}],"resultDescription":"Returns a JSON object with two fields: 'echo' containing the exact JSON body you submitted unchanged, and 'ts' with the server time as an ISO 8601 datetime string.","failureModes":["Missing or malformed JSON body returns a 4xx error","Non-JSON body type when bodyType is set to 'json' may cause parsing failure","Payment failure or insufficient USDC balance results in 402 Payment Required","Network timeout if the x402 facilitator is unreachable"],"whenToPreferThis":"Use this endpoint when you need to verify that your x402 client integration is correctly handling micropayment authentication, request serialization, and response parsing — it is the simplest possible paid endpoint for end-to-end smoke testing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:45:37.001Z","isFirstParty":false}