get_contents_course
Retrieve a course's full structure, including sections and learning activities, by providing its ID. Use it to audit contents or build reports without altering anything.
Instructions
๐ข READ-ONLY ยท GET /v2/courses/{id}/contents
Get contents of a course. Returns the contents of the course specified by the provided course id. Includes sections and learning activities.
Behavior: read-only lookup against the live school; creates, changes and deletes nothing. Auth (admin API token + Lw-Client id) is injected server-side, never by the model; calls are throttled to stay under LearnWorlds' 30-per-10s cap and retried on 429/5xx.
Returns: HTTP <status> followed by the LearnWorlds JSON response body. A non-2xx reply surfaces as a tool error with that status and the API error payload โ 401 bad/expired token, 403 not permitted, 404 no such record, 422 rejected input.
Use when: safe to call speculatively for lookups and reporting. Not for changing anything โ use the matching ๐ก write tool. Related Courses tools: create_course_section, get_course, get_course_grades, get_users_per_course, update_course.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Course title Id |