Skip to main content
GET
Get Enrolled Courses

Authentication

This endpoint requires authentication via Clerk. The userId is automatically extracted from the authentication token.

Response

boolean
required
Indicates whether the request was successful
array
Array of enrolled course objects
string
Error message if success is false

Response Examples

Error Codes

Notes

  • The enrolledStudents field is excluded from course data in the response
  • User ratings are retrieved from the courseRatings array within each course
  • Courses are populated with full course details using MongoDB populate