For AI agents
How an autonomous agent can discover, read and buy ML-NIGHTWORX reports. Everything here is also in /reports.json.
1. Discover
Fetch https://reports.ml-nightworx.io/reports.json (JSON manifest: id, title, type, format, pages, published date, status, abstract, overview URL, price, payment rails) or /llms.txt. Every report page carries schema.org Report, Product/Offer and FAQPage JSON-LD.
2. Read the free overview
Each overview_url is a plain HTML page with the Executive Overview, key findings, FAQ and sources. No login, no JavaScript required.
3. Pay 95 USDC on Arbitrum One
- Chain: Arbitrum One (chainId 42161)
- Token: native USDC, contract
0xaf88d065e77c8cC2239327C5EDb3A432268e5831(6 decimals) - Recipient:
0x8851Cd6fA0F9956FcBD1fEdfa60bEF888784a2EB - Amount: at least 95 USDC (95000000 units) in one transaction; 20 confirmations
- Purchasable ids now:
malaysia-ai-digital-export-economy-2030,malaysia-ai-digital-export-economy-briefing,malaysia-ai-infrastructure-reckoning,uav-robotics-market-intelligence-2027-2029,enterprise-ai-spend-2026,enterprise-llm-spend-vs-consumer-adoption-2026
4. Verify and download
POST https://reports.ml-nightworx.io/api/usdc/verify
Content-Type: application/json
{"report": "malaysia-ai-infrastructure-reckoning", "tx": "0x…", "email": "[email protected]"}
200 {"ok": true, "slug": "…", "title": "…", "exp": 1796000000, "url": "https://reports.ml-nightworx.io/api/download?t=…"}
402 {"ok": false, "why": "Waiting for confirmations (5/20). Try again in a few seconds."}
409 {"ok": false, "why": "This transaction has already been redeemed. …"}
Then GET the url within 24 hours to receive the PDF (application/pdf). Each transaction redeems one report once. Retry on 402 (confirmations) and 502 (RPC).
5. Dashboard API (v1)
For agents that keep a dashboard updated. Spec: /api/v1/openapi.json (OpenAPI 3.1, also at /.well-known/openapi.json). Pay per report only, no subscriptions.
GET /api/v1/reports: free catalogue (filters?status=available|preorder,?tag=ai,?q=) with overview Markdown, key findings, headline KPIs, sources, prices and payment rails.GET /api/v1/reports/{slug}returns one report.POST /api/v1/unlock: exchange a payment for a Bearer token scoped to one report, valid 30 days. USDC:{"report", "tx", "email"?}. Card:{"session_id"}from the Stripe return URL. A tx hash is redeemed once, here or on/api/usdc/verify; repeating with the same email returns the same access. 10 calls/min, 60/hour per IP.GET /api/v1/reports/{slug}/feed: with the token, returnssummary_markdown(full report text),datasets(every table in the PDF as JSON; numeric tables also as tidy series with unit, period, source andbasis: actual, estimate, projection or derived),sourcesand a 24-hourpdf_url. Without a token it returns HTTP 402 with payment instructions and an x402-styleacceptsblock (pay-then-unlock; theX-PAYMENTheader is not supported). Feeds exist for available reports only; pre-orders return 409.
# 1. Discover (free)
curl -s https://reports.ml-nightworx.io/api/v1/reports?status=available
# 2. Without a token, the feed answers 402 with how to pay
curl -i https://reports.ml-nightworx.io/api/v1/reports/malaysia-ai-infrastructure-reckoning/feed
# 3. After sending 95 USDC on Arbitrum One to 0x8851Cd6fA0F9956FcBD1fEdfa60bEF888784a2EB
curl -s -X POST https://reports.ml-nightworx.io/api/v1/unlock -H 'content-type: application/json' -d '{"report":"malaysia-ai-infrastructure-reckoning","tx":"0x…","email":"[email protected]"}'
# → {"ok":true,"token":"nwx1.…","token_type":"Bearer","expires_at":"…","feed_url":"…","pdf_url":"…"}
# 4. Pull the feed into your dashboard
curl -s https://reports.ml-nightworx.io/api/v1/reports/malaysia-ai-infrastructure-reckoning/feed -H "Authorization: Bearer nwx1.…"
Card payments
Stripe Payment Links (on each report page) are for human checkout. After payment Stripe redirects to /thanks/?session_id=…, which calls GET /api/stripe/verify?session_id=… and returns the same response shape.