Skip to main content
GET
/
course_lesson_interactions
/
{id}
JavaScript
import Whop from '@whop/sdk';

const client = new Whop({
  appID: 'app_xxxxxxxxxxxxxx',
  apiKey: 'My API Key',
});

const courseLessonInteraction = await client.courseLessonInteractions.retrieve('crsli_xxxxxxxxxxxx');

console.log(courseLessonInteraction.id);
{
  "id": "crsli_xxxxxxxxxxxx",
  "completed": true,
  "created_at": "2023-12-01T05:00:00.401Z",
  "lesson": {
    "id": "lesn_xxxxxxxxxxxxx",
    "title": "<string>"
  },
  "user": {
    "id": "user_xxxxxxxxxxxxx",
    "name": "<string>",
    "username": "<string>"
  },
  "course": {
    "id": "cors_xxxxxxxxxxxxx",
    "title": "<string>",
    "experience": {
      "id": "exp_xxxxxxxxxxxxxx"
    }
  }
}

Authorizations

Authorization
string
header
required

The app API key from an app from the /dashboard/developer page

Path Parameters

id
string
required

The ID of the course lesson interaction

Example:

"crsli_xxxxxxxxxxxx"

Response

A successful response

A lesson interaction tracking user progress in courses

id
string
required

The ID of the lesson interaction

Example:

"crsli_xxxxxxxxxxxx"

completed
boolean
required

Whether the lesson has been completed by the user

created_at
string<date-time>
required

When the interaction was created

Example:

"2023-12-01T05:00:00.401Z"

lesson
object
required

The lesson this interaction is for

user
object
required

The user who interacted with the lesson

course
object
required

The course for this lesson interaction