When to use the sandbox
Discovery: GET /sandbox/info
Hit this first to confirm the sandbox is enabled and read its current
configuration. No auth required.
Purchase: POST /sandbox/try
Switching shields
PassproductName (or productId) and the API auto-resolves the asset
literal from the registry:
Side-by-side: curl ↔ TypeScript
Both
lumina.sandbox.info() and lumina.sandbox.try() are public
methods in SDK 0.6.0 (no apiKey required on the client).
Body fields
Limits
Transitioning to full onboarding
Once your sandbox call succeeds end-to-end, graduate to the real path:- Mint an API key — one wallet signature, you get an
lk_…key. - Fund the buyer wallet with USDC (Base Sepolia faucets are linked in the quickstart). The relayer still pays the gas; the buyer pays only the premium.
- Call
lumina.policies.purchase(...)with yourproductName,buyer, andcoverageAmount. See First policy. - Subscribe to webhooks for
policy_triggeredandbond_minted— see Webhooks.
lumina.sandbox.try() is one rename away from lumina.policies.purchase().