Simulations
Get Simulation Result
Get stored results for a simulation.
Handles multiple data formats:
- Parquet files in storage (newest format) - loaded from storage
- JSONB in simulation_data table (legacy) - migrated to parquet
Parameters
simulation_id : str ID of the simulation user_org_client : tuple[str, str | None, AsyncClient] Current user_id, organization_id, and Supabase client simulation_repository : SimulationRepository Repository for simulations table simulation_data_repository : SimulationDataRepository Repository for simulation_data table (legacy) target_rows : int | None If set, downsample time series to at most this many rows. x_min : float | None Minimum Time [s] value to filter (for zoom). x_max : float | None Maximum Time [s] value to filter (for zoom).
Returns
dict Dictionary with time_series, steps, and metrics
Raises
HTTPException 404 if no results found, 400 for other errors
get/simulations/{simulation_id}/result
Path parameters
simulation_idstring required
Query parameters
target_rowsinteger nullable
x_minnumber nullable
x_maxnumber nullable
x_columnstring
Response
Successful Response
{"stackTrail":"paths:/simulations/{simulation_id}/result:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}