REST API endpoints for GitHub Classroom

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.

Closed - Get an assignment

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.

Parameters

Headers

Path and query parameters

HTTP response status codes

Closed - List accepted assignments for an assignment

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.

Parameters

Headers

Path and query parameters

HTTP response status codes

Closed - Get assignment grades

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.

Parameters

Headers

Path and query parameters

HTTP response status codes

Closed - List classrooms

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.

HTTP response status codes

Closed - Get a classroom

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.

Parameters

Headers

Path and query parameters

HTTP response status codes

Closed - List assignments for a classroom

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.

Parameters

Headers

Path and query parameters

HTTP response status codes