Klasstra API Reference

Build powerful integrations with our comprehensive REST API. Secure, scalable, and designed for modern educational institutions.

Quick Start Guide

Get up and running with the Klasstra API in just a few steps.

1

Get API Key

Generate your API key from the admin dashboard.

curl -X POST https://api.klasstra.com/auth/api-key \
  -H "Authorization: Bearer YOUR_TOKEN"
2

Make First Request

Test your connection with a simple API call.

curl -X GET https://api.klasstra.com/students \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
3

Handle Response

Process JSON responses in your application.

{
  "data": [...],
  "pagination": {
    "total": 150,
    "page": 1,
    "limit": 20
  }
}

API Endpoints

Comprehensive REST API endpoints organized by functionality.

Authentication

Secure API access with OAuth 2.0 and API keys.

  • POST
    /auth/login

    User authentication

  • POST
    /auth/refresh

    Refresh access tokens

  • POST
    /auth/logout

    User logout

  • GET
    /auth/profile

    Get user profile

Students

Comprehensive student data management endpoints.

  • GET
    /students

    List all students

  • POST
    /students

    Create new student

  • GET
    /students/{id}

    Get student details

  • PUT
    /students/{id}

    Update student info

Courses & Classes

Academic course and class management functionality.

  • GET
    /courses

    List all courses

  • POST
    /courses

    Create new course

  • GET
    /classes/{id}/attendance

    Get attendance records

  • POST
    /classes/{id}/grades

    Submit grades

Administration

Administrative endpoints for system management.

  • GET
    /admin/users

    Manage system users

  • POST
    /admin/roles

    Create user roles

  • GET
    /admin/analytics

    System analytics

  • GET
    /admin/audit-logs

    Audit trail logs

Webhooks

Real-time notifications and event-driven integrations.

  • POST
    /webhooks

    Create webhook endpoint

  • GET
    /webhooks

    List webhook subscriptions

  • PUT
    /webhooks/{id}

    Update webhook settings

  • DELETE
    /webhooks/{id}

    Remove webhook

Authentication

API Key Authentication

Include your API key in the request header for authentication.

X-API-Key: your_api_key_here

OAuth 2.0

For server-to-server integrations with enhanced security.

Authorization: Bearer your_access_token

Rate Limits & Best Practices

Rate Limits

  • 1000 requests per hour for standard APIs
  • 5000 requests per hour for premium plans
  • Unlimited for enterprise customers

Error Handling

All API responses follow standard HTTP status codes.

200Success
400Bad Request
401Unauthorized
429Rate Limited

Need Help with Integration?

Our developer support team is here to help you build amazing integrations.