Sandbox mode — no real money moves.
Abstract sculpture of interwoven metallic filaments and particles

HTTP 402 · Prepaid micro-payments settled on PayPal rails

Get paid whenAI agents use your API.

Haggles turns HTTP 402 Payment Required into a fast, policy-guarded payment handshake backed by prepaid PayPal wallets and automatic seller payouts.

The Settlement Layer v1
for the Agentic Web.

Turn every HTTP endpoint into a self-serve, metered revenue stream backed by prepaid PayPal wallets, sub-cent double-entry accounting, and programmable spending guardrails.

Warm abstract metallic gradient backdrop

Micro-Dollar Telemetry

Unlock real-time visibility into every paid API call, seller net revenue, and sub-cent platform fee without floating-point drift.

Haggles Ledger
Live facilitator settlement metrics:
99.8%
Instant HTTP 402
Token Redemption
95%
Net Seller Share
Paid via PayPal
2ms
Local Ed25519
JWKS Verification

Policy-Guarded Autonomy

Agent spending that is human-bounded, cryptographically scoped, and enforced inside serializable ledger transactions.

Haggles Policy Guard

How much can your autonomous research agent spend today before Haggles halts further calls?

PayPal-Backed Settlement

Upgrade API monetization with one-click PayPal wallet funding and scheduled whole-cent seller payouts.

@haggles/client Fetch metro rent & transit datasets for Austin and San Francisco within my $0.10 daily cap.

Haggles Facilitator
Settled
Bought 2 verified datasets for $0.04
PayPal Payouts v1 · Whole-cent sweep ready

How It Works

From two lines of middleware to automatic PayPal payouts, we've made agentic commerce effortless.

Haggles
402 Payment Required · $0.03 per call
Drop @haggles/server into any Hono or Express API and set a USD price from $0.0001 to $5.00. Unpaid requests automatically receive an HTTP 402 challenge.
Start now5 mins to complete steps

Drop-in SDKs for Sellers and Buyers

Zero crypto wallets or custom tokens — pure HTTP 402 settled in USD on PayPal rails.

Explore full SDK docs
import { paywall } from "@haggles/server/hono";
const pay = paywall({
sellerKey: process.env.HAGGLES_SELLER_KEY!,
sellerId: process.env.HAGGLES_SELLER_ID!,
publicBaseUrl: "https://datasets.example.com",
});
// Gate any HTTP endpoint behind an Ed25519-signed 402 challenge
app.get("/datasets/rent-index", pay({ price: "0.03", description: "Metro rent index" }), (c) => {
return c.json({ city: c.req.query("city"), medianRentUsd: 3180 });
});
Ready for PayPal Sandbox & AI Agents

Put a price on your API.
Let AI agents pay the tab.

Connect your PayPal account in seconds, issue policy-guarded keys for your autonomous agents, or monetize any Hono or Express endpoint with automatic payouts.

Prepaid PayPal Wallets
Fund once with PayPal Orders v2 ($5–$200)
Hard Spending Policies
Per-call, daily, monthly & host guardrails
Automatic Seller Payouts
Whole-cent sweeps via PayPal Payouts v1