{ "opencollection": "1.0.0", "info": { "name": "LearnWorlds Courses Webhooks 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": "Webhooks", "type": "folder" }, "items": [ { "info": { "name": "List webhooks", "type": "http" }, "http": { "method": "GET", "url": "https://{school}.learnworlds.com/admin/api/v2/webhooks" }, "docs": "Lists the configured webhook subscriptions for the school." }, { "info": { "name": "Create a webhook", "type": "http" }, "http": { "method": "POST", "url": "https://{school}.learnworlds.com/admin/api/v2/webhooks", "body": { "type": "json", "data": "{}" } }, "docs": "Creates a webhook subscription that POSTs event payloads to a target URL when the subscribed event fires (for example course.completed, user.enrolled, payment.created)." }, { "info": { "name": "Delete a webhook", "type": "http" }, "http": { "method": "DELETE", "url": "https://{school}.learnworlds.com/admin/api/v2/webhooks/:id", "params": [ { "name": "id", "value": "", "type": "path", "description": "The webhook identifier." } ] }, "docs": "Deletes a webhook subscription." } ] } ], "bundled": true }