Skip to content
Fourohtwo

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

BaseAnswering
POSThttps://www.api-xpay.com/x402/echo

Uptime100% 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