Bag Docs
Guides

Set Up Agentic Payments (X402)

Paywall any API endpoint using the X402 protocol for machine-to-machine payments.

Set Up Agentic Payments (X402)

This page is under construction. Check back soon, or reach out to us if you need help with this topic now.

Bag supports the X402 protocol for agentic (machine-to-machine) payments. You can create a payment link with isAgenticProxy: true and a targetUrl to paywall any API endpoint. When an agent pays, it gets proxied through to your API.

This feature is currently available on EVM chains only (Base, Ethereum, Polygon). Solana support is planned.

On this page