Course students

Retrieve course student

Changed on

Retrieves the details of an existing course student.

Required permissions:

  • courses:read
  • course_analytics:read
get/course_students/{id}

Request

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

Path parameters

id, string required

The unique identifier of the course student record to retrieve.

Response

A successful response

CourseStudent required

An enrollment record for a student in a course, including progress and completion metrics.

completed_lessons_count, integer required

The total number of lessons this student has marked as completed in the course.

completion_rate, number required

The percentage of available lessons the student has completed, as a value from 0 to 100 rounded to two decimal places.

course, object required

The course this student is enrolled in.

first_interaction_at, string date-time required

The timestamp when the student first interacted with this course, as a Unix timestamp.

id, string required

The unique identifier for the course student type.

last_interaction_at, string date-time required

The timestamp when the student most recently interacted with this course, as a Unix timestamp.

total_lessons_count, integer required

The total number of visible lessons available to this student in the course.

user, object required

The user profile of the enrolled student.

Example response

{
  "completed_lessons_count": 42,
  "completion_rate": 6.9,
  "course": {
    "experience": {
      "id": "exp_xxxxxxxxxxxxxx"
    },
    "id": "cors_xxxxxxxxxxxxx",
    "title": "Introduction to Ceramic Coating"
  },
  "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