Skip to main content
Skip to content
The REST API is now versioned. For more information, see "About API versioning."

REST API endpoints for GitHub Classroom

Use the REST API to interact with GitHub Classroom.

Closed - Get an assignment

Warning

Closed notice: This operation is no longer available as of August 28, 2026. For more information, see the GitHub Classroom sunset notice.

Fine-grained access tokens for "Closed - Get an assignment"

This endpoint does not work with GitHub App user access tokens, GitHub App installation access tokens, or fine-grained personal access tokens.

Parameters for "Closed - Get an assignment"

Headers
Name, Type, Description
accept string

Setting to application/vnd.github+json is recommended.

Path parameters
Name, Type, Description
assignment_id integer Required

The unique identifier of the classroom assignment.

HTTP response status codes for "Closed - Get an assignment"

Status codeDescription
410

Gone

Closed - List accepted assignments for an assignment

Warning

Closed notice: This operation is no longer available as of August 28, 2026. For more information, see the GitHub Classroom sunset notice.

Fine-grained access tokens for "Closed - List accepted assignments for an assignment"

This endpoint does not work with GitHub App user access tokens, GitHub App installation access tokens, or fine-grained personal access tokens.

Parameters for "Closed - List accepted assignments for an assignment"

Headers
Name, Type, Description
accept string

Setting to application/vnd.github+json is recommended.

Path parameters
Name, Type, Description
assignment_id integer Required

The unique identifier of the classroom assignment.

HTTP response status codes for "Closed - List accepted assignments for an assignment"

Status codeDescription
410

Gone

Closed - Get assignment grades

Warning

Closed notice: This operation is no longer available as of August 28, 2026. For more information, see the GitHub Classroom sunset notice.

Fine-grained access tokens for "Closed - Get assignment grades"

This endpoint does not work with GitHub App user access tokens, GitHub App installation access tokens, or fine-grained personal access tokens.

Parameters for "Closed - Get assignment grades"

Headers
Name, Type, Description
accept string

Setting to application/vnd.github+json is recommended.

Path parameters
Name, Type, Description
assignment_id integer Required

The unique identifier of the classroom assignment.

HTTP response status codes for "Closed - Get assignment grades"

Status codeDescription
410

Gone

Closed - List classrooms

Warning

Closed notice: This operation is no longer available as of August 28, 2026. For more information, see the GitHub Classroom sunset notice.

Fine-grained access tokens for "Closed - List classrooms"

This endpoint does not work with GitHub App user access tokens, GitHub App installation access tokens, or fine-grained personal access tokens.

HTTP response status codes for "Closed - List classrooms"

Status codeDescription
410

Gone

Closed - Get a classroom

Warning

Closed notice: This operation is no longer available as of August 28, 2026. For more information, see the GitHub Classroom sunset notice.

Fine-grained access tokens for "Closed - Get a classroom"

This endpoint does not work with GitHub App user access tokens, GitHub App installation access tokens, or fine-grained personal access tokens.

Parameters for "Closed - Get a classroom"

Headers
Name, Type, Description
accept string

Setting to application/vnd.github+json is recommended.

Path parameters
Name, Type, Description
classroom_id integer Required

The unique identifier of the classroom.

HTTP response status codes for "Closed - Get a classroom"

Status codeDescription
410

Gone

Closed - List assignments for a classroom

Warning

Closed notice: This operation is no longer available as of August 28, 2026. For more information, see the GitHub Classroom sunset notice.

Fine-grained access tokens for "Closed - List assignments for a classroom"

This endpoint does not work with GitHub App user access tokens, GitHub App installation access tokens, or fine-grained personal access tokens.

Parameters for "Closed - List assignments for a classroom"

Headers
Name, Type, Description
accept string

Setting to application/vnd.github+json is recommended.

Path parameters
Name, Type, Description
classroom_id integer Required

The unique identifier of the classroom.

HTTP response status codes for "Closed - List assignments for a classroom"

Status codeDescription
410

Gone