GitHub Enterprise Classroom API

Interact with GitHub Classroom.

Operations 6

GET /assignments/{assignment_id} Closed - Get an assignment #
GET /assignments/{assignment_id}/accepted_assignments Closed - List accepted assignments for an assignment #
GET /assignments/{assignment_id}/grades Closed - Get assignment grades #
GET /classrooms Closed - List classrooms #
GET /classrooms/{classroom_id} Closed - Get a classroom #
GET /classrooms/{classroom_id}/assignments Closed - List assignments for a classroom #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/github-enterprise:github-enterprise-classroom-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

github-enterprise-classroom-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Github Enterprise Classroom API
  version: 1.1.4
  contact:
    name: Support
    url: https://support.github.com/contact?tags=dotcom-rest-api
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
  termsOfService: https://docs.github.com/articles/github-terms-of-service
  x-github-plan: ghec
  description: 'Operations tagged classroom across 2 of this provider''s published API definitions: github-enterprise-ghec-openapi.json, github-enterprise-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.github.com
tags:
- name: classroom
  description: Interact with GitHub Classroom.
paths:
  /assignments/{assignment_id}:
    get:
      summary: Closed - Get an assignment
      description: '> [!WARNING]

        > **Closed notice:** This operation is no longer available as of August 28, 2026.

        > For more information, see the GitHub Classroom sunset notice.'
      tags:
      - classroom
      operationId: classroom/get-an-assignment
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-cloud@latest/rest/classroom/classroom#closed---get-an-assignment
      parameters:
      - $ref: '#/components/parameters/assignment-id'
      responses:
        '410':
          $ref: '#/components/responses/gone'
      x-github:
        enabledForGitHubApps: false
        category: classroom
        subcategory: classroom
        deprecationDate: '2026-05-22'
        removalDate: '2026-08-28'
      deprecated: true
    servers:
    - url: https://api.github.com
  /assignments/{assignment_id}/accepted_assignments:
    get:
      summary: Closed - List accepted assignments for an assignment
      description: '> [!WARNING]

        > **Closed notice:** This operation is no longer available as of August 28, 2026.

        > For more information, see the GitHub Classroom sunset notice.'
      tags:
      - classroom
      operationId: classroom/list-accepted-assignments-for-an-assignment
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-cloud@latest/rest/classroom/classroom#closed---list-accepted-assignments-for-an-assignment
      parameters:
      - $ref: '#/components/parameters/assignment-id'
      responses:
        '410':
          $ref: '#/components/responses/gone'
      x-github:
        enabledForGitHubApps: false
        category: classroom
        subcategory: classroom
        deprecationDate: '2026-05-22'
        removalDate: '2026-08-28'
      deprecated: true
    servers:
    - url: https://api.github.com
  /assignments/{assignment_id}/grades:
    get:
      summary: Closed - Get assignment grades
      description: '> [!WARNING]

        > **Closed notice:** This operation is no longer available as of August 28, 2026.

        > For more information, see the GitHub Classroom sunset notice.'
      tags:
      - classroom
      operationId: classroom/get-assignment-grades
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-cloud@latest/rest/classroom/classroom#closed---get-assignment-grades
      parameters:
      - $ref: '#/components/parameters/assignment-id'
      responses:
        '410':
          $ref: '#/components/responses/gone'
      x-github:
        enabledForGitHubApps: false
        category: classroom
        subcategory: classroom
        deprecationDate: '2026-05-22'
        removalDate: '2026-08-28'
      deprecated: true
    servers:
    - url: https://api.github.com
  /classrooms:
    get:
      summary: Closed - List classrooms
      description: '> [!WARNING]

        > **Closed notice:** This operation is no longer available as of August 28, 2026.

        > For more information, see the GitHub Classroom sunset notice.'
      tags:
      - classroom
      operationId: classroom/list-classrooms
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-cloud@latest/rest/classroom/classroom#closed---list-classrooms
      responses:
        '410':
          $ref: '#/components/responses/gone'
      x-github:
        enabledForGitHubApps: false
        category: classroom
        subcategory: classroom
        deprecationDate: '2026-05-22'
        removalDate: '2026-08-28'
      deprecated: true
    servers:
    - url: https://api.github.com
  /classrooms/{classroom_id}:
    get:
      summary: Closed - Get a classroom
      description: '> [!WARNING]

        > **Closed notice:** This operation is no longer available as of August 28, 2026.

        > For more information, see the GitHub Classroom sunset notice.'
      tags:
      - classroom
      operationId: classroom/get-a-classroom
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-cloud@latest/rest/classroom/classroom#closed---get-a-classroom
      parameters:
      - $ref: '#/components/parameters/classroom-id'
      responses:
        '410':
          $ref: '#/components/responses/gone'
      x-github:
        enabledForGitHubApps: false
        category: classroom
        subcategory: classroom
        deprecationDate: '2026-05-22'
        removalDate: '2026-08-28'
      deprecated: true
    servers:
    - url: https://api.github.com
  /classrooms/{classroom_id}/assignments:
    get:
      summary: Closed - List assignments for a classroom
      description: '> [!WARNING]

        > **Closed notice:** This operation is no longer available as of August 28, 2026.

        > For more information, see the GitHub Classroom sunset notice.'
      tags:
      - classroom
      operationId: classroom/list-assignments-for-a-classroom
      externalDocs:
        description: API method documentation
        url: https://docs.github.com/enterprise-cloud@latest/rest/classroom/classroom#closed---list-assignments-for-a-classroom
      parameters:
      - $ref: '#/components/parameters/classroom-id'
      responses:
        '410':
          $ref: '#/components/responses/gone'
      x-github:
        enabledForGitHubApps: false
        category: classroom
        subcategory: classroom
        deprecationDate: '2026-05-22'
        removalDate: '2026-08-28'
      deprecated: true
    servers:
    - url: https://api.github.com
components:
  parameters:
    assignment-id:
      name: assignment_id
      description: The unique identifier of the classroom assignment.
      in: path
      required: true
      schema:
        type: integer
    classroom-id:
      name: classroom_id
      description: The unique identifier of the classroom.
      in: path
      required: true
      schema:
        type: integer
  schemas:
    basic-error:
      title: Basic Error
      description: Basic Error
      type: object
      properties:
        message:
          type: string
        documentation_url:
          type: string
        url:
          type: string
        status:
          type: string
  responses:
    gone:
      description: Gone
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/basic-error'
externalDocs:
  description: GitHub Enterprise Cloud REST API
  url: https://docs.github.com/enterprise-cloud@latest/rest/
x-refined-from:
- github-enterprise-ghec-openapi.json
- github-enterprise-openapi.yml