cURL
curl --request GET \ --url https://api.example.com/v1/cohorts/{id}/students
Sugar for users.list({ role: 'student', cohort_id }).
users.list({ role: 'student', cohort_id })
Documentation IndexFetch the complete documentation index at: https://docs.hawkings.education/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.hawkings.education/llms.txt
Use this file to discover all available pages before exploring further.
const students = await hk.cohorts.students("coh_123"); // Equivalent: const same = await hk.students.list({ cohort_id: "coh_123" });
role: "student"