> ## 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](/medical-api/handling-data/cohorts)

## Response

<ResponseField name="cohorts" type="Cohort[]" required>
  Array of cohorts.

  <Expandable title="Cohort properties">
    <Snippet file="cohort-response.mdx" />
  </Expandable>
</ResponseField>

<ResponseExample>
  ```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();
  ```
</ResponseExample>

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