Use the REST API to interact with GitHub Classroom.
Note
Most endpoints use Authorization: Bearer <YOUR-TOKEN> and Accept: application/vnd.github+json headers, plus X-GitHub-Api-Version: 2026-03-10. Curl examples below omit these standard headers for brevity.
GET /assignments/{assignment_id}
Warning
Closed notice: This operation is no longer available as of August 28, 2026.
For more information, see the GitHub Classroom sunset notice.
accept (string)application/vnd.github+json is recommended.assignment_id (integer) (required)GET /assignments/{assignment_id}/accepted_assignments
Warning
Closed notice: This operation is no longer available as of August 28, 2026.
For more information, see the GitHub Classroom sunset notice.
accept (string)application/vnd.github+json is recommended.assignment_id (integer) (required)GET /assignments/{assignment_id}/grades
Warning
Closed notice: This operation is no longer available as of August 28, 2026.
For more information, see the GitHub Classroom sunset notice.
accept (string)application/vnd.github+json is recommended.assignment_id (integer) (required)GET /classrooms
Warning
Closed notice: This operation is no longer available as of August 28, 2026.
For more information, see the GitHub Classroom sunset notice.
GET /classrooms/{classroom_id}
Warning
Closed notice: This operation is no longer available as of August 28, 2026.
For more information, see the GitHub Classroom sunset notice.
accept (string)application/vnd.github+json is recommended.classroom_id (integer) (required)GET /classrooms/{classroom_id}/assignments
Warning
Closed notice: This operation is no longer available as of August 28, 2026.
For more information, see the GitHub Classroom sunset notice.
accept (string)application/vnd.github+json is recommended.classroom_id (integer) (required)