get_community_spaces
Retrieve all community spaces in your school, sorted oldest to newest, with pagination and filters by access, course usage, or collection. Read-only lookup for reporting without changing data.
Instructions
๐ข READ-ONLY ยท GET /v2/community/spaces
Get community spaces. Returns a list with all community spaces of the school. The community spaces are in sorted order, with the oldest created spaces appearing first
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: add_invite_users_community_space, create_community_space, delete_community_space, get_community_space, get_users_community_space.
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 | |
| access | No | Filter by space access. This can be public, private or standalone. | |
| usages | No | Filter by the course usage of the space. Should be an array of courseTitleIds | |
| collectionId | No | Filter by the unique identifier of the collection the spaces are displayed | |
| items_per_page | No | Filter by the items per page number |