Course students
List course students
Changed onReturns 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 URLhttps://api.whop.com/api/v1
- AuthHTTP 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, Course Student List Item[] required
A list of nodes.
page_info, Page Info 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
- info
added the required property
data/items/user/profile_pictureto the response with the status
- info
- info
added the non-success response with the status
- info