This looks like a test or demo endpoint, so it is left out of the directory and agents' search. It may not return anything useful.
Echo a JSON message back
www.api-xpay.com/x402/echo
Echo a JSON message back
POST
https://www.api-xpay.com/x402/echoUptime100% of 1 check in 30 days
30 days agoToday
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://www.api-xpay.com/x402/echo", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"message":"hello"}),
});
console.log(await res.json());Example input
{
"message": "hello"
}More from X PayProvider status
- www.api-xpay.com/x402/classifyAI topic classification of text20.00
- www.api-xpay.com/x402/ipReturn the requester IP address0.005
- www.api-xpay.com/x402/keywordsAI keyword extraction from text10.00
- www.api-xpay.com/x402/networkBase network and USDC payment metadata0.005
- www.api-xpay.com/x402/paymentPayment receipt with transaction details0.005
- www.api-xpay.com/x402/quotePayment quote with amount, asset, and merchant wallet0
- www.api-xpay.com/x402/randomGenerate a random integer and hex bytes0.005
- www.api-xpay.com/x402/rewriteAI rewrite of input text10.00
- www.api-xpay.com/x402/sentimentAI sentiment analysis of text10.00
- www.api-xpay.com/x402/statusService status and payment configuration0.005
- www.api-xpay.com/x402/timeCurrent server time in UTC0.005
- www.api-xpay.com/x402/uuidGenerate a random UUID v40.005
