> ## 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.

# List lessons

## Query

<ParamField query="cohort_id" type="string" required />

<ParamField query="unit_id" type="string" />

<ParamField query="type" type="enum" />

<ParamField query="limit" type="integer" default="20" />

<ParamField query="starting_after" type="string" />

## Examples

<CodeGroup>
  ```ts TypeScript theme={null}
  const lessons = await hk.lessons.list({ cohort_id: "coh_123" });
  ```

  ```php PHP theme={null}
  $lessons = $hk->lessons->list(['cohort_id' => 'coh_123']);
  ```
</CodeGroup>

## Returns

A paginated list of [Lesson](/api-reference/lessons/object) objects.
