---
title: "Anonymized cohort analysis — aggregate nutrition, weight, and behavioral data"
method: POST
path: "/api/bridge/research/cohort-query"
tags: ["Lucille Bridge"]
---

# Anonymized cohort analysis — aggregate nutrition, weight, and behavioral data

`POST /api/bridge/research/cohort-query`

## Request

- Base URL: `https://api.rewritelifestyle.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.rewritelifestyle.ai/api/bridge/research/cohort-query`
- Auth: API key in header `X-Bridge-Key`

Query anonymized aggregate data across user cohorts. All data is stripped of PII and aggregated to cohort level. Supports filtering by surgery type, months post-surgery, activity level, and detected patterns. Returns aggregate nutrition stats, pattern distribution, food search trends, and restaurant mention frequency. Pass `includeHealth: true` to also receive the inline health slice (sleep / steps / resting HR / HRV / glucose-in-range / weight loss) — same shape as /research/health-aggregates. For internal research use — no individual user data is ever returned.

## Request body

- ResearchCohortQueryDto

## Response `201`

---

[API](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api.md) - [All operations](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/revisions/28695827f27a?raw)
