GET
/
course_lesson_interactions
/
{id}
JavaScript
import Whopsdk from 'whopsdk';

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

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

console.log(courseLessonInteraction.id);
{
  "id": "crsli_xxxxxxxxxxxx",
  "completed": true,
  "created_at": 1701406800,
  "lesson": {
    "id": "lesn_xxxxxxxxxxxxx",
    "title": "<string>"
  },
  "user": {
    "id": "user_xxxxxxxxxxxxx",
    "username": "<string>",
    "name": "<string>"
  }
}

Path Parameters

id
string
required
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
integer
required

When the interaction was created

Example:

1701406800

lesson
object
required

The lesson this interaction is for

user
object
required

The user who interacted with the lesson