Sandbox scenarios
Each sandbox key has its own sandbox workspace. The workspace keeps the active scenario, its own clock, and your sandbox records. The paths under /v1/sandbox/ only work with a sandbox key, and a live key gets 404.
Default scenarios
A new workspace has no scenario selected, so each line answers with one quote:
Select a scenario
The scenario applies to each later quote request of its line, until you select another one or reset the workspace. Requests for other lines keep their default.
To use a scenario for one quote request only, send its ID in that request’s scenario field. The scenario must be for the request’s line.
Check the workspace
The response gives active_scenario, clock_offset_seconds, workspace_time, quotes_expired_at, reset_count, and scenario_catalog_version. active_scenario is null until you select a scenario.
Control time and expiry
Send one control at a time to POST /v1/sandbox/controls. Each control requires an Idempotency-Key, so a retry never moves the clock twice.
Reset the workspace
To clear the workspace’s records, send POST /v1/sandbox/reset with the body {} and an Idempotency-Key. A reset also puts the controls back to their start values, and every line back on its default scenario.
About sandbox quotes
- A sandbox quote has the evidence label
mockand no comparison amount. - Its coverage conditions include
Sandbox premium. Not a carrier price. - A synthetic premium isn’t a carrier price, and it isn’t a market comparison.
Scenario IDs
These IDs come from catalog version 2026-09-28. A mock offer is a synthetic offer, not a market comparison.
Personal auto
Renters
Pet
Pet is quote plus a hand-off to the carrier. Pet carriers sell on their own sites, so the customer buys on the carrier’s site, and Truvo doesn’t learn the result.
Each pet quote returns a continue_on_carrier_site action with a url to open in a new tab. In the sandbox, the link opens a Truvo sandbox page, never a carrier site. The link works until the quote expires on the workspace clock, and after that it opens a Truvo page that says the quote has expired.
Purchase
The catalog also has purchase and payment scenarios for auto and renters, for example auto-pay-in-full and renters-monthly. The API doesn’t have the purchase operations yet.