Cest

Cest solution

Turn API requests into paid access.

Use HTTP 402 payment requirements to charge per request, then verify payment before your handler returns data.

Configure x402Middleware with a plan and per-call rate.

An unpaid request receives payment details with HTTP 402.

The Agent SDK pays and retries; middleware verifies the payment.

Use a shared Redis-compatible nonce store for production replay protection.

Technical details and SDK names follow the linked ArcenPay documentation.