Skip to Content
API ReferenceAttemptPOST /leaderboard

POST /attempt/leaderboard

Get Leaderboard

Request Body (LeaderboardRequest)

FieldTypeRequiredDescription
start_datestringNoFilter start date
end_datestringNoFilter end date
cohort_idsstring[]NoCohort IDs to filter by
simulation_idsstring[]NoSimulation IDs to filter by
department_idsstring[]NoDepartment IDs to filter by
simulation_filtersstring[]NoSimulation filter strings
target_profile_idstringNoTarget profile ID to scope data
cohort_idstringNoSingle cohort ID (deprecated)
simulation_idstringNoSingle simulation ID (deprecated)
scenario_idsstring[]NoScenario IDs to filter by
searchstringNoProfile name search (ILIKE) for filter dropdowns
sort_bystringNoSort field name
sort_orderstringNoSort direction (asc or desc)
snapshot_keystringNoCache snapshot key for consistent reads across related requests

Response (LeaderboardResponse)

FieldTypeRequiredDescription
sectionsLeaderboardSectionsNoComputed leaderboard sections
resourcesLeaderboardResourcesNoResource metadata for hydration
analyticsAnalyticsFacetsNoInline analytics facets for SSR
dataLeaderboardDataRow[]NoTop-25% leaderboard rows
total_countintegerNoTotal number of profiles matching filters (top 25% slice)
simulation_optionsFilterOption[]NoSimulation filter options
profile_optionsFilterOption[]NoProfile filter options
Last updated on