Documentation Index
Fetch the complete documentation index at: https://docs-test.rye.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
What is x402?
x402 is an open protocol for paying for HTTP requests inline with a signed stablecoin transfer. Rye exposes an x402-native endpoint athttps://x402.rye.com that accepts purchases from any x402-compatible client — instead of authenticating with a Rye API key, the caller pays for each request with a signed USDC transfer.
It is built for AI agents and other automated clients that hold a crypto wallet but do not have a Rye developer account. It is a thin wrapper around Rye’s standard Checkout Intent flow — the same offer retrieval, order placement, and refund logic — exposed over the x402 wire format.
If you already have a Rye API key, you do not need this endpoint. Use the standard Universal Checkout API — x402 is also available there as a payment method on /v1/checkout-intents/:id/confirm.
When to use it
Use x402 if all of the following are true:- Your client signs HTTP requests from a crypto wallet (Base, Solana, or Tempo)
- You do not have, or do not want to manage, a Rye API key
- You are integrating with AgentCash or another x402-native runtime
Base URL
| Environment | Base URL |
|---|---|
| Production | https://x402.rye.com |
Endpoints
| Method | Path | Fee (USDC) | Description |
|---|---|---|---|
POST | /v1/checkout-intents | $0.02 | Create an intent and start offer retrieval |
GET | /v1/checkout-intents/:id | Free | Read intent state and the retrieved offer |
POST | /v1/checkout-intents/:id/confirm | Purchase total + $0.03 | Confirm the intent and place the order |
PAYMENT-REQUIRED header on each 402 response. GET is free so polling does not accrue cost.
Flow at a glance
Supported networks
| Network | Chain ID (CAIP-2) |
|---|---|
| Base | eip155:8453 |
| Solana | solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Tempo | eip155:4217 |
Wallet identity
There is noAuthorization header and no X-Wallet-Address header on paid calls. The wallet is whatever resolves from authorization.from inside the signed PAYMENT-SIGNATURE payload. A signed request is the authentication — payment and identity are the same.
Discovery
The endpoint publishes an OpenAPI 3.1.0 document withx-payment-info annotations on each paid operation, so AgentCash and other x402 clients can discover prices and schemas without prior knowledge of the API:
Next steps
Quickstart with AgentCash
Walkthrough using the AgentCash SDK
Endpoint Reference
Request and response shapes for each call

