Skip to main content
GET
/
v1
/
cohorts
/
{id}
Retrieve a cohort
curl --request GET \
  --url https://api.example.com/v1/cohorts/{id}

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.

Path parameters

id
string
required

Query parameters

expand
string[]
Allowed: course, units, lessons, students, teachers.

Examples

const cohort = await hk.cohorts.retrieve("coh_123", {
  expand: ["lessons", "students"],
});

Returns

A Cohort.