Tollgate Docs
Tollgate gates HTTP endpoints behind USDC micropayments. Your server returns 402 Payment Required with pricing + an EIP-712 domain; AI agents sign a cumulative IOU; settlement batches those IOUs on-chain on Base. Your app never custodies funds.
These docs are the integration reference. If you're still evaluating, start at tollgatepay.com. If you're already convinced, jump to Getting Started.
What's here
- 5-minute quickstart — install
@tollgatepay/next, wrap a route, try the demo. - Bar-tab model and settlement lifecycle.
- SDK reference for @tollgatepay/next, @tollgatepay/core, @tollgatepay/agent, and the Python client.
- Protocol spec — 402 envelope, EIP-712 IOU domain, test vectors.
- Error catalog — every code, hint, resolution, and deep link.
- Webhooks, troubleshooting, availability.
Examples
examples/nextjs-basic/— the quickstart end-to-end.examples/python/— the Python agent client (mirror of@tollgatepay/agent).
Contact
GitHub issues: tollgate/tollgate. Security reports: security@tollgatepay.com.