v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,4581,08113.3 MB
classroom

Closing down - Get a classroom

[!WARNING] Closing down notice: This operation is closing down and will be removed on August 28, 2026. For more information, see the GitHub Classroom sunset notice.

Gets a GitHub Classroom classroom for the current user. Classroom will only be returned if the current user is an administrator of the GitHub Classroom.

get/classrooms/{classroom_id}

Path parameters

classroom_idinteger required

The unique identifier of the classroom.

Response

Response

idinteger required

Unique identifier of the classroom.

namestring required

The name of the classroom.

archivedboolean required

Whether classroom is archived.

urlstring required

The URL of the classroom on GitHub Classroom.

Example response

{
  "id": 42,
  "name": "Programming Elixir",
  "organization": {
    "id": 1,
    "login": "github",
    "node_id": "MDEyOk9yZ2FuaXphdGlvbjE=",
    "html_url": "https://github.com/github",
    "name": "Github - Code thigns happen here",
    "avatar_url": "https://github.com/images/error/octocat_happy.gif"
  },
  "url": "https://classroom.github.com/classrooms/1-programming-elixir"
}