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

# Retrieve a cohort

## Path parameters

<ParamField path="id" type="string" required />

## Query parameters

<ParamField query="expand" type="string[]">
  Allowed: `course`, `units`, `lessons`, `students`, `teachers`.
</ParamField>

## Examples

<CodeGroup>
  ```ts TypeScript theme={null}
  const cohort = await hk.cohorts.retrieve("coh_123", {
    expand: ["lessons", "students"],
  });
  ```

  ```php PHP theme={null}
  $cohort = $hk->cohorts->retrieve('coh_123', [
      'expand' => ['lessons', 'students'],
  ]);
  ```
</CodeGroup>

## Returns

A [Cohort](/api-reference/cohorts/object).
