Course lesson interactions

List course lesson interactions

Changed on

Returns a paginated list of lesson interactions for a lesson or course. Callers without admin access to the course's experience see only their own interactions.

Required permissions:

  • courses:read
  • course_analytics:read
get/course_lesson_interactions

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
user_id, string

The unique identifier of the user to filter lesson interactions for.

Example:user_xxxxxxxxxxxxx
lesson_id, string

The unique identifier of the lesson to filter interactions for.

Example:lesn_xxxxxxxxxxxxx
course_id, string

The unique identifier of the course to filter interactions for.

Example:cors_xxxxxxxxxxxxx
completed, boolean

Whether to filter for completed or in-progress lesson interactions.

Response

A successful response

object required

The connection type for LessonInteraction.

data, CourseLessonInteractionListItem[] required

A list of nodes.

page_info, PageInfo required

Information to aid in pagination.

Example response

{
  "data": [
    {
      "created_at": "2023-12-01T05:00:00.401Z",
      "id": "crsli_xxxxxxxxxxxx",
      "lesson": {
        "chapter": {
          "id": "chap_xxxxxxxxxxxxx"
        },
        "id": "lesn_xxxxxxxxxxxxx",
        "title": "Preparing Paint for Ceramic Coating"
      },
      "user": {
        "id": "user_xxxxxxxxxxxxx",
        "name": "Marcus Webb",
        "username": "marcuswebb"
      }
    }
  ]
}

Changes