get_course_grades
Retrieve grades for all users enrolled in a course, with pagination and filters by users or learning units for targeted reporting.
Instructions
๐ข READ-ONLY ยท GET /v2/courses/{id}/grades
Get course grades. Retrieves the grades of all enrolled users in the course specified by the provided course id. The list is paginated with a limit of 20 grades per page.
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.
Parameters: results are paged โ walk them with page and size each page with items_per_page.
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_contents_course, get_course, get_users_per_course, update_course.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique identifier of the course | |
| page | No | Filter by the page number. In case page number is higher than the maximum one, the results of last page will be returned | |
| sort | No | Specifies the field to sort by. Allowed values are "created" or "submittedTimestamp". | |
| order | No | Specifies the order of sorting. Allowed values are "asc" for ascending or "desc" for descending. | |
| users | No | Filter by user ids. For several id values, a comma separated string can be provided | |
| learningUnits | No | Filter by learning unit ids. For several id values, a comma separated string can be provided. | |
| items_per_page | No | Filter by the items per page number |