How environments work
- The environment comes from the key.
psk_test_keys operate in test mode,psk_live_keys in live mode. Same base URL, same endpoints, same payload shapes. - Every resource is stamped with its environment. Each group, quote, and enrollment carries
"mode": "test"or"mode": "live". - Environments are fully isolated. Test keys only see test resources; live keys only see live resources. There is no cross-mode read and no “promote to live”. When you go live, you recreate real employers with your live key.
Test mode vs live mode
No money moves in either environment until Prescience activates the company. Activation (
sandbox → prod) is a manual gate on our side, after the employer completes onboarding. Test companies are never activated. You cannot trigger a funding pull by accident; there is no API for it.Deterministic quotes
The rating engine is a pure function of the census, the plan year start date, and the rate card. The same inputs always produce the same cents, in test and in live. That means you can:- Snapshot-test your integration. The quote in the quickstart (
monthly.totalCents: 660096) will reproduce exactly from the same census. - Build pricing UI against real numbers. No mock data drift between your test fixtures and production behavior.
- Re-quote freely. Quoting has no side effects beyond writing the quote record. Rate limit: 60 quote creates per hour.
Test the full lifecycle
A complete test-mode pass looks like:POST /groups→PUT /census→POST /quotes: verify your quote handling and plan-selection UI.POST /enrollments: verify your selection flow, theemployerPortalresponse (inviteSuppressed: truein test mode), and theenrollment.createdwebhook.GET /account+GET /members: build the benefits tab against the sandbox company.PUT /webhook+POST /webhook/test: verify signatures end to end.- New hire and termination calls: verify census sync.