01
Provision
POST to /admin/links with your origin URL, price in USD, and merchant wallet. The
response includes the public link ID and a scoped admin key.
- Supports JSON, file URLs, HTML, API endpoints
- Scoped admin key is tied to your merchant wallet
02
Integrate
Serve the 402 challenge from /p/:id. Your client (browser, agent, script) redirects
to PayAI, collects the payment, and retries with X-PAYMENT.
- Headers include
X-PAYMENT-REQUIREMENTS for invoice details
- Works with PayAI facilitator UI or programmatic clients
03
Observe
Every successful request emits analytics events to ClickHouse. The dashboard shows revenue,
conversion, referrers, and recent payments within ~60 seconds.
- Events:
link_paid_call, link_free_call
- KV → ClickHouse export runs via Worker cron
04
Scale
Use the admin API to rotate keys, adjust pricing, or update link metadata. Premium tiers unlock
webhook dispatch and direct ClickHouse sync.
- PATCH endpoints to edit price and quotas
- Roadmap: automated webhooks + revenue exports