const course = await request("/courses", "POST", { format: "lti", connection_id: tool.id, launch_url: "https://tool.example/activities/practice", title: "Practice activity", custom_parameters: { activity: "practice" }, passing_score: 80, shareable: false }); console.log(course.course_id); // Ready immediately. const session = await request("/courses/" + course.course_id + "/sessions", "POST", { user: { name: "John Doe", email: "john@example.com" }, origin: "https://lms.example.com", attempt_mode: "resume" }); // Give only session.launch_token to this learner’s authorized browser.