Skip to content

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: GET

  • Path: /profile/{username}/courses

  • Edition: Core

  • Controller: ProfileController@getCourses

  • Route source: fluent-community/app/Http/Routes/api.php:91

  • Controller source: fluent-community/app/Http/Controllers/ProfileController.php

  • Requires the course_module feature to be enabled.

  • Gated by the user_space_visibility privacy 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

GET
/profile/{username}/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

ApplicationPasswords

WordPress Application Passwords — use Basic auth with username:application_password.

Type
API Key (header: Authorization)

Parameters

Path Parameters

username*

Username extracted from the URL path.

Type
string
Required

Responses

Successful response

application/json
JSON
{
  
"courses": [
  
  
{
  
  
  
"additionalProperties": "string"
  
  
}
  
]
}

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation