Course students

List course students

Changed on

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

Required permissions:

  • courses:read
  • course_analytics:read
get/course_students

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Query parameters

after, string

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

before, string

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

first, integer

Returns the first n elements from the list.

Example:42
last, integer

Returns the last n elements from the list.

Example:42
course_id, string required

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

Example:cors_xxxxxxxxxxxxx
keyword, string

A search term to filter students by name or username.

Response

A successful response

object required

The connection type for CourseStudentType.

data, CourseStudentListItem[] required

A list of nodes.

page_info, PageInfo required

Information to aid in pagination.

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": "Marcus Webb",
        "profile_picture": {
          "url": "https://media.whop.com/abc123/optimized.jpg"
        },
        "username": "marcuswebb"
      }
    }
  ]
}

Changes