API Reference
Get class roster
Retrieve the list of students enrolled in a specific class.
Authorization
BearerAuth AuthorizationBearer <token>
Obtain your API key from the developer dashboard at https://dashboard.educare.com
In: header
Path Parameters
id*integer
Response Body
application/json
application/json
application/json
curl -X GET "https://api.educare.com/v1/classes/0/roster"{
"class": {
"id": 890,
"name": "Advanced Physics",
"teacher_id": 567,
"teacher": {
"id": 567,
"name": "Dr. Sarah Chen",
"email": "sarah.chen@educare.com",
"department": "Science",
"subjects": [
"Physics",
"Chemistry"
],
"phone": "+1-555-222-3333",
"office_room": "B-204",
"hire_date": "2018-08-15",
"created_at": "2018-08-15T09:00:00Z",
"updated_at": "2025-11-20T16:45:00Z"
},
"schedule": "Mon/Wed/Fri 10:00-11:30",
"room": "Science Lab 3",
"capacity": 30,
"enrolled_count": 25,
"semester": "Spring 2026",
"created_at": "2025-12-01T08:00:00Z"
},
"students": [
{
"id": 1234,
"name": "Emma Wilson",
"email": "emma.wilson@student.educare.com",
"grade_level": "11",
"date_of_birth": "2008-05-15",
"guardian_name": "Sarah Wilson",
"guardian_email": "sarah.wilson@email.com",
"guardian_phone": "+1-555-123-4567",
"address": "123 Oak Street, Springfield, IL 62701",
"enrollment_date": "2023-08-20",
"created_at": "2023-08-20T10:30:00Z",
"updated_at": "2025-12-15T14:22:00Z"
}
],
"total_count": 25
}{
"error": "Invalid API key",
"code": "UNAUTHORIZED",
"status": 401
}{
"error": "Student not found",
"code": "NOT_FOUND",
"status": 404
}