Skip to main content

GET /api/v1/finngen/endpoints/{name}/eligible-controls?source_key=…

GET 

/api/v1/finngen/endpoints/:name/eligible-controls

Phase 15 (GENOMICS-14) — eligible control cohort picker. Filters: (a) cohort_definitions.id < 100_000_000_000 (excludes FinnGen-offset case cohorts); (b) a succeeded generation exists in {source}.cohort (enforced by the inner JOIN to cohort_counts — only cohorts with rows appear); (c) RBAC — admin/super-admin see every cohort; other users see only cohorts they own (cd.author_id = user.id) or cohorts flagged is_public=TRUE. Legacy cohorts with NULL author_id that are not is_public are intentionally hidden from non-admin users by this policy; the legacy bool-placeholder bypass was removed (REVIEW §WR-01).

Request

Responses