---
title: "Get a classroom"
method: GET
path: "/classrooms/{classroom_id}"
tags: ["classroom"]
---

# Get a classroom

`GET /classrooms/{classroom_id}`

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.

## Path parameters

- `classroom_id` integer, required

## Response `200`

Response

- Classroom — A GitHub Classroom classroom
  - `id` integer, required — Unique identifier of the classroom.
  - `name` string, required — The name of the classroom.
  - `archived` boolean, required — Whether classroom is archived.
  - `organization` SimpleClassroomOrganization, required — A GitHub organization.
    - `id` integer, required
    - `login` string, required
    - `node_id` string, required
    - `html_url` string, uri, required
    - `name` string, nullable, required
    - `avatar_url` string, required
  - `url` string, required — The URL of the classroom on GitHub Classroom.

## Other responses

- `404` — Resource not found

---

[API](https://skmtc.dev/github/apis/rest.md) · [All operations](https://skmtc.dev/github/apis/rest/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/github/rest/revisions/fd784b1d2c89/schema)
