get_community_posts
Fetch paginated community posts, newest first, with filters for author, space, course, or mentions. Use for read-only lookup and reporting in your LearnWorlds school.
Instructions
๐ข READ-ONLY ยท GET /v2/community/posts
Get community posts. Returns a list with all the posts of the school community. The post are in sorted order, with the most recently created post appearing first, and the list is paginated, with a default limit of 10 posts per page. To refine the list of posts, there are a number of query params outlined in the following section; In case more than one Query param is provided, then all of them will be applied (AND operator).
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 Community tools: get_community_post, add_invite_users_community_space, create_community_space, delete_community_space, get_community_collections.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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 | |
| user_id | No | Filter by the post author. Can be a unique identifier or email | |
| mentions | No | Filter by the unique identifier of the user a post mentions | |
| space_id | No | Filter by the unique identifier of the space in which the post was made | |
| course_id | No | Filter by the unique identifier of the course discussion the post was made | |
| items_per_page | No | Filter by the items per page number |