Developer API

Business payments,
powered by crypto

Accept payments, generate invoices, and automate transfers — all through one simple API. Billed monthly in USDC, straight from your connected wallet — no credit card.


Three steps to go live

No signups. No credit cards. Your wallet is your identity.

1

Open Business menu in the app

In app.caw.cash, tap Business → swipe open the left menu → tap Developer API. Credentials are managed exclusively from within the app.

2

Connect wallet & choose a plan

Connect MetaMask or any EVM wallet. The Free tier activates instantly. Paid plans are charged in USDC on Base directly from your connected wallet — no bank, no card required.

3

Copy your key & integrate

Pass your key as X-CAW-API-Key in every request header. All endpoints live at https://worker.caw.cash/api/.


Simple monthly pricing

Monthly plans, paid on-chain in USDC on Base. Free test keys are issued instantly; paid keys go live after payment. To auto-renew, approve USDC spending to the address returned by /api/dev/verify — see GET /api/dev/status to check you're set up before your first renewal.

Free (test)
$0
10,000 sandbox calls / month
  • Payment links
  • Scheduled payments
  • Price & market data
  • Instant activation
Sandbox test key (caw_test_) — no real payments. Issued instantly.
Pro
$99 USDC / month
1,000,000 calls / month
  • Everything in Starter
  • Unlimited volume
  • CSV export
  • MCP integration
Best for high-volume production.
Enterprise
$299 USDC / month
Unlimited calls / month
  • Everything in Pro
  • Unlimited volume
  • Priority SLA & support
  • Custom limits
For large-scale production. Paid in USDC on Base.

Endpoints

Base URL: https://worker.caw.cash

Payments
POST/api/payment/linkLiveCreate a payment link with amount, description, expiry, and optional webhook
GET/api/payment/linksLiveList all payment links for your account
GET/api/payment/link/:idLiveGet status and details of a specific payment link
DELETE/api/payment/link/:idLiveCancel a payment link
Invoices
POST/api/invoiceLiveCreate an invoice with line items, due date, and recipient details
GET/api/invoicesLiveList all invoices
GET/api/invoice/:idLiveGet invoice details and payment status
Scheduled Payments
POST/api/scheduleLiveCreate a recurring payment (daily / weekly / monthly)
GET/api/schedulesLiveList all scheduled payments
DELETE/api/schedule/:idLiveCancel a scheduled payment
Rates & Market
GET/api/priceLiveReal-time prices for CAW, USDC, and ETH
GET/api/price/marketLiveFull CAW market data including volume and market cap
Account
GET/api/dev/statusLiveCheck API key status, plan tier, and monthly usage count

One request to get paid

Create a payment link and share it. Receive a webhook when payment arrives.

curl
# Create a $50 payment link with webhook notification
curl -X POST "https://worker.caw.cash/api/payment/link" \
  -H "X-CAW-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "amount": 50.00,
    "description": "Order #1042",
    "expires_in_minutes": 60,
    "webhook_url": "https://yourapp.com/webhook/caw"
  }'

# Response
{
  "ok":         true,
  "id":         "abc123xyz",
  "url":        "https://worker.caw.cash/pay/abc123xyz",
  "amount":     50.00,
  "expires_at": "2026-01-01T12:00:00.000Z"
}
JavaScript / Node.js
const res = await fetch('https://worker.caw.cash/api/payment/link', {
  method: 'POST',
  headers: {
    'X-CAW-API-Key': process.env.CAW_API_KEY,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    amount: 50.00,
    description: 'Order #1042',
    webhook_url: 'https://yourapp.com/webhook/caw',
  }),
});
const { url } = await res.json();
// Share `url` with your customer to complete payment

Generate a payment button

Fill in the details, watch your button update live, then paste the embed code into any website, WordPress, or HTML page — no backend needed.

Configure your button. The generated code calls the CAW CASH API on click and opens a payment page automatically.
API key is never exposed in this code. The widget ID is safe to embed publicly.
Live preview — exactly what your customers see
Updates as you type. Clicking runs a harmless demo — no charge, no payment page.
Generated code — paste into your HTML
HTML embed

Ready to integrate?

Open the app, go to Business → Developer API, and get your key in under a minute.

Open CAW CASH App