x402_create_protected_endpoint
Create a paywall-protected endpoint requiring x402 payment. Set price in USD, token, network, and rate limits to charge for API access.
Instructions
Define a new paywall-protected endpoint. This tool configures pricing for an API endpoint that will require x402 payment.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | URL path pattern (e.g., '/api/joke', '/api/premium/*') | |
| price | Yes | Price in USD (e.g., '0.001' for $0.001) | |
| token | No | Payment token | USDs |
| methods | No | HTTP methods (default: all) | |
| network | No | Blockchain network | arbitrum |
| rateLimit | No | Max requests per payer per hour | |
| description | No | Human-readable description of the endpoint |