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"
| Name, Type, Description |
|---|
accept string Setting to |
| Name, Type, Description |
|---|
assignment_id integer RequiredThe unique identifier of the classroom assignment. |
HTTP response status codes for "Closed - Get an assignment"
| Status code | Description |
|---|---|
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"
| Name, Type, Description |
|---|
accept string Setting to |
| Name, Type, Description |
|---|
assignment_id integer RequiredThe unique identifier of the classroom assignment. |
HTTP response status codes for "Closed - List accepted assignments for an assignment"
| Status code | Description |
|---|---|
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"
| Name, Type, Description |
|---|
accept string Setting to |
| Name, Type, Description |
|---|
assignment_id integer RequiredThe unique identifier of the classroom assignment. |
HTTP response status codes for "Closed - Get assignment grades"
| Status code | Description |
|---|---|
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 code | Description |
|---|---|
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"
| Name, Type, Description |
|---|
accept string Setting to |
| Name, Type, Description |
|---|
classroom_id integer RequiredThe unique identifier of the classroom. |
HTTP response status codes for "Closed - Get a classroom"
| Status code | Description |
|---|---|
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"
| Name, Type, Description |
|---|
accept string Setting to |
| Name, Type, Description |
|---|
classroom_id integer RequiredThe unique identifier of the classroom. |
HTTP response status codes for "Closed - List assignments for a classroom"
| Status code | Description |
|---|---|
410 | Gone |