> ## Documentation Index
> Fetch the complete documentation index at: https://docs.polygon.technology/llms.txt
> Use this file to discover all available pages before exploring further.

# x402 protocol: agentic payments over HTTP

> x402 is the open payment protocol that brings onchain payments to the HTTP 402 Payment Required status code. Build agentic and AI agent payments for APIs and web services. Polygon-supported networks, facilitators, and quickstart.

x402 is an open payment protocol that brings blockchain payments into the HTTP
standard. By reusing the HTTP 402 Payment Required status code, it lets
developers handle onchain and agentic payments with the same tools they already
use for APIs and web services.

Instead of building complex wallet integrations or subscription systems,
developers can treat payments like any other part of the HTTP request/response
cycle. This approach works for web2 developers experimenting with paid APIs and
for web3 builders who need a lightweight way to support pay-per-use APIs,
agent-to-agent transactions, and micropayments.

[Read more about x402 here](https://x402.gitbook.io/x402).

## Access on Polygon

Polygon supports **x402 v2** on mainnet and Amoy through the following facilitators:

1. Polygon Mainnet Facilitator: [https://x402.polygon.technology](https://x402.polygon.technology)
2. Polygon Amoy Facilitator: [https://x402-amoy.polygon.technology](https://x402-amoy.polygon.technology)

> [!NOTE]
>
> Both Polygon facilitators run **x402 v2**. Use the `@x402/*` packages in the
> [Quickstart for Buyers](https://docs.polygon.technology/payment-services/agentic-payments/x402/guides/quickstart-buyers.md) and
> [Quickstart for Sellers](https://docs.polygon.technology/payment-services/agentic-payments/x402/guides/quickstart-sellers.md). Upgrading from V1?
> See [Migration: V1 to V2](https://docs.polygon.technology/payment-services/agentic-payments/x402/guides/migration-v1-to-v2.md).

Additional facilitators compatible with Polygon:

* [ThirdWeb](https://playground.thirdweb.com/payments/x402)
* [x402.rs Facilitator Endpoint](https://facilitator.x402.rs/)
* [Pay.AI](https://payai.network/)
* [Corbits](https://docs.corbits.dev/about-x402/facilitators)
* [Questflow](https://facilitator.questflow.ai/)

## High-frequency payments with Paychannels

Each standard x402 payment is one onchain transfer. For workloads that pay
many times per task, such as per-token inference, pay-per-call APIs, or
streaming payments, [Paychannels](https://docs.polygon.technology/pos/paychannels/overview.md) carry x402
payments through a channel instead: the payer deposits once, then pays with a
signed voucher that a hub verifies in microseconds, and settlement to Polygon
happens in batches. Paychannels use the x402 `batch-settlement` scheme, so the
same `402` response can offer both. Paychannels are not limited to x402; they
accelerate any high-frequency payment flow. [Try a demo](https://docs.polygon.technology/pos/paychannels/try-a-demo.md).

## Build with x402

To implement x402 with Polygon and your applications or agents, follow the
tutorials and guides in these docs. Alternatively, the x402 community has
created
[multiple examples](https://github.com/coinbase/x402/tree/main/examples/typescript)
which can be adapted for Polygon.
