Introduction

Last updated June 20, 2026

Welcome to your brand new Classgrid Documentation platform!

Because we are using MDX, you can write regular markdown, but you can also include code blocks and eventually custom React components!

Pro Tip: This entire layout is powered by Sanity CMS and Next.js, meaning you can edit this directly from your dashboard and see it update instantly!

What can you build?

With the Classgrid API, you can easily integrate our powerful infrastructure into any platform:

  • Student Portals — Sync grades, attendance, and coursework in real-time.
  • Faculty Dashboards — Manage permissions and assignment distribution instantly.
  • Automated Billing — Handle invoices and Stripe webhooks automatically.

Getting Started

To get started, you will need an API key from your Classgrid dashboard. This key must be included in the header of all your API requests. Our API follows standard REST principles and returns JSON-encoded responses.

  1. Navigate to the Developers tab in your dashboard.
  2. Click on Generate New API Key.
  3. Copy the key and store it securely. Never share your master key!

Authentication Protocol

Authentication is handled via Bearer tokens. You should generate a short-lived access token using your master API key. The token must be passed in the Authorization header.

JSON
{
  "Authorization": "Bearer cg_prod_abc123def456ghi789",
  "Content-Type": "application/json"
}

Core Concepts

Classgrid relies on a few core concepts that you must understand before making complex queries:

  • Modules: Represent the different features available (e.g., Attendance, Grades, Billing).
  • Users: The individuals accessing the platform. They can have different roles assigned to them.
  • Roles: Define the exact permissions granted to each user within the different modules.

Supabase Database Architecture

Here is the schema overview for our core tables used in the platform:

Table NameDescriptionAccess LevelPrimary Key
usersStores core authentication and profile dataAdmin Onlyuuid
materialsContains all educational resourcesAuthenticatedid
tenant_configWhite-label settings for schoolsSystemtenant_id
support_ticketsHelp center tickets and resolutionsStaffticket_id

Note: All tables have Row Level Security (RLS) enabled by default.

Error Handling

Our API uses standard HTTP status codes to indicate the success or failure of a request.

  • 2xx range indicate success.
  • 4xx range indicate a client error (e.g., bad request, unauthorized).
  • 5xx range indicate a server error.

Rate Limits

To ensure quality of service for all users, the Classgrid API enforces rate limits. You can make up to 1000 requests per minute per IP address. If you exceed this limit, you will receive a 429 Too Many Requests response.

Was this helpful?
M↓Markdown supportedMessage is optional