F

Forgemesh · Agent Fortune

by Forgemesh

POSTBase

$0.001

per call · USD Coin on Base

Agent fortune API: a fortune cookie written specifically for AI agents ('A cached response is worth two upstream calls'), plus a lucky number and lucky HTTP status code. The cheapest, most delightful way to make your first x402 payment and verify your wallet stack works end to end. New fortune every call.

Endpoint

POST https://x402.forgemesh.io/agent-fortune

2

Calls / 30d

2

Unique payers / 30d

Sep 2

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://x402.forgemesh.io/agent-fortune", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({}),
});
const data = await res.json();
cURL
curl -X POST \
  "https://x402.forgemesh.io/agent-fortune" \
  -H "Content-Type: application/json" \
  -d '{}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "fortune": "He who retries with exponential backoff prospers.",
  "lucky_http_status": 402,
  "lucky_number": 42
}

Payment details

Pay to0x850363a27f0ac6feb9c7a3ec4c1d295262df9432
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of AI & Inference and the homepage with a featured placement.

Get featured →

More from Forgemesh & similar services