v8

OpenAPI 3.1.02026-08-033623795.0 MB
Course students

List course students

Returns a paginated list of students enrolled in a course, with optional name filtering.

Required permissions:

  • courses:read
  • course_analytics:read
get/course_students

Query parameters

afterstring nullable

Returns the elements in the list that come after the specified cursor.

beforestring nullable

Returns the elements in the list that come before the specified cursor.

firstinteger nullable

Returns the first n elements from the list.

Example:42
lastinteger nullable

Returns the last n elements from the list.

Example:42
course_idstring required

The unique identifier of the course to list enrolled students for.

Example:cors_xxxxxxxxxxxxx
keywordstring nullable

A search term to filter students by name or username.

Response

A successful response

Example response

{
  "data": [
    {
      "completed_lessons_count": 42,
      "completion_rate": 6.9,
      "first_interaction_at": "2023-12-01T05:00:00.401Z",
      "last_interaction_at": "2023-12-01T05:00:00.401Z",
      "total_lessons_count": 42,
      "user": {
        "id": "user_xxxxxxxxxxxxx",
        "name": "John Doe",
        "username": "johndoe42"
      }
    }
  ]
}