Google Classroom Registrations API

The Registrations API from Google Classroom — 2 operation(s) for registrations.

GitHub OpenAPI

Operations 2

POST /v1/registrations Create registrations #
DELETE /v1/registrations/{registrationId} Delete registrations #

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/google-classroom:google-classroom-registrations-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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

google-classroom-registrations-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Google Classroom API Registrations API
  version: v1
  description: Generated from Google's published Discovery document for Google Classroom API (classroom v1, revision 20261108).
    2 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
externalDocs:
  url: https://developers.google.com/workspace/classroom/
servers:
- url: https://classroom.googleapis.com
paths:
  /v1/registrations:
    post:
      operationId: classroom.registrations.create
      summary: Create registrations
      description: 'Creates a `Registration`, causing Classroom to start sending notifications from the provided `feed` to
        the destination provided in `cloudPubSubTopic`. Returns the created `Registration`. Currently, this will be the same
        as the argument, but with server-assigned fields such as `expiry_time` and `id` filled in. Note that any value specified
        for the `expiry_time` or `id` fields will be ignored. While Classroom may validate the `cloudPubSubTopic` and return
        errors on a best effort basis, it is the caller''s responsibility to ensure that it exists and that Classroom has
        permission to publish to it. This method may return the following error codes: * `PERMISSION_DENIED` if: * the authenticated
        user does not have permission to receive notifications from the requested field; or * the current user has not granted
        access to the current Cloud project with the appropriate scope for the requested feed. Note that domain-wide delegation
        of authority is not currently supported for this purpose. If the request has the appropriate scope, but no grant exists,
        a Request Errors is returned. * another access error is encountered. * `INVALID_ARGUMENT` if: * no `cloudPubsubTopic`
        is specified, or the specified `cloudPubsubTopic` is not valid; or * no `feed` is specified, or the specified `feed`
        is not valid. * `NOT_FOUND` if: * the specified `feed` cannot be located, or the requesting user does not have permission
        to determine whether or not it exists; or * the specified `cloudPubsubTopic` cannot be located, or Classroom has not
        been granted permission to publish to it.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Registration'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Registration'
        4XX:
          content: &id001
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content: *id001
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/classroom.push-notifications
      - apiKey: []
      tags:
      - Registrations
  /v1/registrations/{registrationId}:
    delete:
      operationId: classroom.registrations.delete
      summary: Delete registrations
      description: Deletes a `Registration`, causing Classroom to stop sending notifications for that `Registration`.
      parameters:
      - name: registrationId
        in: path
        required: true
        description: The `registration_id` of the `Registration` to be deleted.
        schema:
          type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Empty'
        4XX:
          content: &id002
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content: *id002
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/classroom.push-notifications
      - apiKey: []
      tags:
      - Registrations
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/classroom.student-submissions.me.readonly: View your course work and grades in
              Google Classroom
            https://www.googleapis.com/auth/classroom.courses: See, edit, create, and permanently delete your Google Classroom
              classes
            https://www.googleapis.com/auth/classroom.push-notifications: Receive notifications about your Google Classroom
              data
            https://www.googleapis.com/auth/classroom.coursework.students.readonly: View course work and grades for students
              in the Google Classroom classes you teach or administer
            https://www.googleapis.com/auth/classroom.announcements: View and manage announcements in Google Classroom
            https://www.googleapis.com/auth/classroom.guardianlinks.students.readonly: View guardians for students in your
              Google Classroom classes
            https://www.googleapis.com/auth/classroom.guardianlinks.students: View and manage guardians for students in your
              Google Classroom classes
            https://www.googleapis.com/auth/classroom.profile.photos: View the profile photos of people in your classes
            https://www.googleapis.com/auth/classroom.coursework.students: Manage course work and grades for students in the
              Google Classroom classes you teach and view the course work and grades for classes you administer
            https://www.googleapis.com/auth/classroom.addons.teacher: See, create, and update its own attachments to posts
              in classes you teach in Google Classroom
            https://www.googleapis.com/auth/classroom.courseworkmaterials: See, edit, and create classwork materials in Google
              Classroom
            https://www.googleapis.com/auth/classroom.profile.emails: View the email addresses of people in your classes
            https://www.googleapis.com/auth/classroom.rosters: Manage your Google Classroom class rosters
            https://www.googleapis.com/auth/classroom.coursework.me.readonly: View your course work and grades in Google Classroom
            https://www.googleapis.com/auth/classroom.topics: See, create, and edit topics in Google Classroom
            https://www.googleapis.com/auth/classroom.student-submissions.students.readonly: View course work and grades for
              students in the Google Classroom classes you teach or administer
            https://www.googleapis.com/auth/classroom.coursework.me: See, create and edit coursework items including assignments,
              questions, and grades
            https://www.googleapis.com/auth/classroom.rosters.readonly: View your Google Classroom class rosters
            https://www.googleapis.com/auth/classroom.addons.student: See and update its own attachments to posts in Google
              Classroom
            https://www.googleapis.com/auth/classroom.courseworkmaterials.readonly: See all classwork materials for your Google
              Classroom classes
            https://www.googleapis.com/auth/classroom.announcements.readonly: View announcements in Google Classroom
            https://www.googleapis.com/auth/classroom.courses.readonly: View your Google Classroom classes
            https://www.googleapis.com/auth/classroom.guardianlinks.me.readonly: View your Google Classroom guardians
            https://www.googleapis.com/auth/classroom.topics.readonly: View topics in Google Classroom
  schemas:
    CloudPubsubTopic:
      properties:
        topicName:
          type: string
          description: The `name` field of a Cloud Pub/Sub [Topic](https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics#Topic).
      type: object
      description: A reference to a Cloud Pub/Sub topic. To register for notifications, the owner of the topic must grant
        `classroom-notifications@system.gserviceaccount.com` the `projects.topics.publish` permission.
    CourseRosterChangesInfo:
      description: Information about a `Feed` with a `feed_type` of `COURSE_ROSTER_CHANGES`.
      type: object
      properties:
        courseId:
          type: string
          description: The `course_id` of the course to subscribe to roster changes for.
    CourseWorkChangesInfo:
      type: object
      description: Information about a `Feed` with a `feed_type` of `COURSE_WORK_CHANGES`.
      properties:
        courseId:
          description: The `course_id` of the course to subscribe to work changes for.
          type: string
    Empty:
      description: 'A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs.
        A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc
        Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }'
      type: object
      properties: {}
    Feed:
      properties:
        courseRosterChangesInfo:
          $ref: '#/components/schemas/CourseRosterChangesInfo'
          description: Information about a `Feed` with a `feed_type` of `COURSE_ROSTER_CHANGES`. This field must be specified
            if `feed_type` is `COURSE_ROSTER_CHANGES`.
        feedType:
          type: string
          description: The type of feed.
          enum:
          - FEED_TYPE_UNSPECIFIED
          - DOMAIN_ROSTER_CHANGES
          - COURSE_ROSTER_CHANGES
          - COURSE_WORK_CHANGES
        courseWorkChangesInfo:
          $ref: '#/components/schemas/CourseWorkChangesInfo'
          description: Information about a `Feed` with a `feed_type` of `COURSE_WORK_CHANGES`. This field must be specified
            if `feed_type` is `COURSE_WORK_CHANGES`.
      type: object
      description: 'A class of notifications that an application can register to receive. For example: "all roster changes
        for a domain".'
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
    Registration:
      properties:
        expiryTime:
          format: google-datetime
          description: The time until which the `Registration` is effective. This is a read-only field assigned by the server.
          type: string
        cloudPubsubTopic:
          $ref: '#/components/schemas/CloudPubsubTopic'
          description: The Cloud Pub/Sub topic that notifications are to be sent to.
        feed:
          $ref: '#/components/schemas/Feed'
          description: Specification for the class of notifications that Classroom should deliver to the destination.
        registrationId:
          description: A server-generated unique identifier for this `Registration`. Read-only.
          type: string
      type: object
      description: An instruction to Classroom to send notifications from the `feed` to the provided destination.
x-provenance:
  method: harvested
  publisher: Google
  source: https://classroom.googleapis.com/$discovery/rest?version=v1
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261108)