Build on MeterCall
One API for 2,000+ modules. Meter every call, pay with cards, credits, or crypto, and let agents pay agents via x402. Integrate in under 5 minutes.
Ship fast #
Quickstart
Get an API key, make your first call, and track usage in 5 minutes.
Core concepts
Modules, agents, wallets, calls, credits, receipts, signatures.
API reference
Complete REST reference with request/response shapes and cURL.
Layer 4 (L4) API
One API, 30+ chains, 500+ protocols. Cross-chain balance, gas, TVL, DEX, NFT, ENS.
Agent-pay (x402)
Let AI agents pay per request via HTTP 402 and signed payment headers.
Webhooks
Real-time events for calls, payments, alerts, and module publishing.
SDKs
Official libraries for JavaScript, Python, Go, Ruby, PHP, and Rust.
Examples
Copy-paste recipes — Stripe replacement, Bloomberg, agent-pays-agent.
Changelog
Release notes, API versioning, and migration guides.
L4 Whitepaper (v0.9)
Protocol-engineer-grade paper: router, bridge, PCP economics, node network, security, risks.
What is MeterCall? #
MeterCall is a universal API gateway for software. Every time your app (or an AI agent acting on your behalf) calls an external service, that call goes through MeterCall. In return you get:
- One contract, 2,000+ providers. Stripe, Twilio, OpenAI, Bloomberg, Notion, Shopify, and everything else — all behind a single JSON envelope.
- Metered billing. Pay per call, per token, per megabyte, or per whatever the module charges.
- Agent-pay. Any client (human or machine) can make a call. When payment is required, we answer
402 Payment Requiredand your client (or agent wallet) signs a payment header. - Receipts & audit. Every call produces a signed receipt you can verify.
Your first call #
Every authenticated request uses your API key in the Authorization header. Here is the canonical call:
POST https://metercall.ai/v1/module/stripe-replacement/call
Authorization: Bearer mc_live_abc123...
Content-Type: application/json
{
"action": "charge",
"amount": 4900,
"currency": "usd",
"source": "tok_visa"
}
Ready to try it? Jump into the quickstart.
Design principles #
- Stateless REST. Every request is self-contained. No sticky sessions.
- JSON everywhere. Request and response bodies are JSON (UTF-8).
- Idempotent writes. All
POSTendpoints accept anIdempotency-Keyheader. - Signed receipts. Every billable call returns an
X-Receipt-Sigheader (Ed25519) you can verify against our public key at/.well-known/metercall-pubkey. - 402-first. If your caller has no balance or no key, MeterCall replies with
402and aWWW-Authenticate: X-Paymentheader.
Base URL #
https://metercall.ai
All endpoints in this documentation are relative to this host. Testnet modules are available on /v1/test/....
Support #
Need help? hi@metercall.ai for API issues, the builder directory if you want to ship a module and earn revenue share, or GitHub for SDK bugs.