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.
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"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"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/loginUser authentication
- POST
/auth/refreshRefresh access tokens
- POST
/auth/logoutUser logout
- GET
/auth/profileGet user profile
Students
Comprehensive student data management endpoints.
- GET
/studentsList all students
- POST
/studentsCreate new student
- GET
/students/{id}Get student details
- PUT
/students/{id}Update student info
Courses & Classes
Academic course and class management functionality.
- GET
/coursesList all courses
- POST
/coursesCreate new course
- GET
/classes/{id}/attendanceGet attendance records
- POST
/classes/{id}/gradesSubmit grades
Administration
Administrative endpoints for system management.
- GET
/admin/usersManage system users
- POST
/admin/rolesCreate user roles
- GET
/admin/analyticsSystem analytics
- GET
/admin/audit-logsAudit trail logs
Webhooks
Real-time notifications and event-driven integrations.
- POST
/webhooksCreate webhook endpoint
- GET
/webhooksList 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_hereOAuth 2.0
For server-to-server integrations with enhanced security.
Authorization: Bearer your_access_tokenRate 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.
Need Help with Integration?
Our developer support team is here to help you build amazing integrations.