curl --request GET \
--url https://api.alpha-1edtech.ai/edubridge/enrollments/user/{userId} \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "123",
"role": "administrator",
"beginDate": "<string>",
"endDate": "<string>",
"course": {
"id": "<string>",
"title": "<string>",
"metadata": {},
"subjects": [
"<string>"
],
"grades": [
"<string>"
],
"primaryApp": {
"id": "<string>",
"name": "<string>",
"domains": [
"<string>"
]
}
},
"school": {
"id": "<string>",
"name": "<string>"
},
"metadata": {
"goals": {
"dailyXp": 123,
"dailyLessons": 123,
"dailyActiveMinutes": 123,
"dailyAccuracy": 123,
"dailyMasteredUnits": 123
},
"metrics": {
"totalXp": 123,
"totalLessons": 123,
"totalGrades": 123,
"courseType": "<string>",
"isSupplemental": true
}
}
}
]
}Returns a simplified, course-centric view of all active enrollments for a user.
This endpoint abstracts away the complex OneRoster academic hierarchy, providing a streamlined representation that focuses on what courses the user is enrolled in rather than details about classes, sections, and academic sessions.
The response includes essential course information without the need to navigate multiple relationship levels.
curl --request GET \
--url https://api.alpha-1edtech.ai/edubridge/enrollments/user/{userId} \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "123",
"role": "administrator",
"beginDate": "<string>",
"endDate": "<string>",
"course": {
"id": "<string>",
"title": "<string>",
"metadata": {},
"subjects": [
"<string>"
],
"grades": [
"<string>"
],
"primaryApp": {
"id": "<string>",
"name": "<string>",
"domains": [
"<string>"
]
}
},
"school": {
"id": "<string>",
"name": "<string>"
},
"metadata": {
"goals": {
"dailyXp": 123,
"dailyLessons": 123,
"dailyActiveMinutes": 123,
"dailyAccuracy": 123,
"dailyMasteredUnits": 123
},
"metrics": {
"totalXp": 123,
"totalLessons": 123,
"totalGrades": 123,
"courseType": "<string>",
"isSupplemental": true
}
}
}
]
}