{ "opencollection": "1.0.0", "info": { "name": "LearnWorlds Courses Users API", "version": "2.0" }, "request": { "auth": { "type": "oauth2", "flow": "client_credentials", "accessTokenUrl": "https://yourschool.learnworlds.com/admin/api/oauth2/access_token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Users", "type": "folder" }, "items": [ { "info": { "name": "List users", "type": "http" }, "http": { "method": "GET", "url": "https://{school}.learnworlds.com/admin/api/v2/users", "params": [ { "name": "page", "value": "", "type": "query", "description": "The page number to retrieve." }, { "name": "items_per_page", "value": "", "type": "query", "description": "The number of items to return per page." } ] }, "docs": "Lists the school's users. Supports pagination and filtering." }, { "info": { "name": "Create a user", "type": "http" }, "http": { "method": "POST", "url": "https://{school}.learnworlds.com/admin/api/v2/users", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new user (student) in the school." }, { "info": { "name": "Get a user", "type": "http" }, "http": { "method": "GET", "url": "https://{school}.learnworlds.com/admin/api/v2/users/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The user identifier (LearnWorlds user id or email)." } ] }, "docs": "Retrieves a single user by ID or email." }, { "info": { "name": "Update a user", "type": "http" }, "http": { "method": "PUT", "url": "https://{school}.learnworlds.com/admin/api/v2/users/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The user identifier (LearnWorlds user id or email)." } ], "body": { "type": "json", "data": "{}" } }, "docs": "Updates an existing user's profile fields." } ] } ], "bundled": true }