> ## Documentation Index
> Fetch the complete documentation index at: https://docs.metriport.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Cohorts

> Lists all cohorts defined by your organization.

For more information, see the [guide about Cohorts](https://docs.metriport.com/medical-api/handling-data/cohorts.md)

## Response

**cohorts** `Cohort[]` *required*

Array of cohorts.

**Cohort properties**

<Snippet file="cohort-response.mdx" />

```javascript Metriport SDK theme={null}
import { MetriportMedicalApi } from "@metriport/api-sdk";

const metriport = new MetriportMedicalApi("YOUR_API_KEY");

// List all cohorts
const allCohorts = await metriport.listCohorts();
```

<Snippet file="cohort-list-response-json.mdx" />


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.