Skip to content
Fourohtwo

Start here

api.loyalspark.online/x402-gateway/register-agent

Start here: get a loyalty & rewards API key. Loyal Spark: loyalty points, rewards & vouchers API on Base (REST + MCP, USDC via x402). POST, $0.01 USDC on Base, pay-only (no API key). One-time per wallet: first pay issues an lsk_ key (shown once); a repeat from the same wallet returns 409 agent_exists unless rotate:true. No plan: Free (1 agent, 200 calls/m...

BaseAnswering
POSThttps://api.loyalspark.online/x402-gateway/register-agent

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://api.loyalspark.online/x402-gateway/register-agent", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"agent_name":"my-agent"}),
});
console.log(await res.json());

Example input

{
  "agent_name": "my-agent"
}