Returns the published courses a member is enrolled in, each with their progress, cover image and section, lesson and student counts.
Secret courses are only included when the caller is the profile owner or a community moderator. Courses without a cover image fall back to the bundled placeholder.
Endpoint
Method:
GETPath:
/profile/{username}/coursesEdition: Core
Controller:
ProfileController@getCoursesRoute source:
fluent-community/app/Http/Routes/api.php:91Controller source:
fluent-community/app/Http/Controllers/ProfileController.phpRequires the
course_modulefeature to be enabled.Gated by the
user_space_visibilityprivacy setting.
Live sample
The request and response below were recorded against a running FluentCommunity install and then anonymised — member names, emails, avatars and post content are fictional, and long collections are trimmed to a few entries.
GET Get Courses
Returns the published courses a member is enrolled in, each with their progress, cover image and section, lesson and student counts.
Controller: ProfileController@getCourses
Route source: fluent-community/app/Http/Routes/api.php:91
Authorizations
WordPress Application Passwords — use Basic auth with username:application_password.
Parameters
Path Parameters
Username extracted from the URL path.
Responses
Successful response