Developer

Pull school data into your systems with the LearnWorlds API LMS integration

Get course, user, and payment information into your own applications through the LearnWorlds API LMS integration.

Course, user, and payment data moving from LearnWorlds into a company's own systems through the API

TL;DR

The LearnWorlds API integration lets your developers read school data directly instead of working from manual exports. You request keys, create a token, and call the public API.

Internal system reading LearnWorlds course and user data without manual exports

Skip the manual exports. Your systems read course and user data through the API

Access token being revoked from the LearnWorlds API settings

Keep access under control. Revoke any access token the moment you stop needing it

Client ID and Client Secret being regenerated from one settings screen

Rotate credentials quickly. Regenerate your Client ID and Client Secret from one screen

Best for: Developers and IT teams who connect LearnWorlds data to internal systems.

Available on Learning Center and above.

What you can do with the LearnWorlds API

Course, user, and bundle data pulled from a school through the API

Pull school data

Pull course, user, and bundle information from your school. The API also covers subscriptions and promotions, plus payments and certifications.

Client ID and Client Secret generated with Request API keys

Generate client credentials

Click Request API keys and your Client ID and Client Secret appear automatically.

Access tokens listed with status and expiration date, ready to revoke

Create and revoke tokens

Create new access tokens, check each one’s status and expiration date, and revoke any you no longer need.

API keys regenerated and API URL copied from the same screen

Regenerate keys when needed

Regenerate your API keys and copy the API URL from the same screen.

How the LearnWorlds API integrates with your systems

See what your system can change through the API and what LearnWorlds returns. Every call needs a valid access token, so each row is conditional.

LearnWorldsYour systemType of trigger
User created or updatedPOST or PUT request from your appConditional
User enrolled in or removed from a productEnroll or unenroll request from your appConditional
User tags updatedPUT request to update user tagsConditional
User suspended or unsuspendedPUT request to suspend or unsuspend the userConditional
Users, enrollments, and products returnedGET request reads the dataConditional

What teams ask before connecting

Is API access available on all plans, or only higher-tier plans?

Only higher-tier plans. API access is available on Learning Center and above, where you request keys under Settings > Developers > API.

What can the API do? Is it read-only, or can it also create and enroll users?

It reads and writes. Your system can create users and enroll them in products through dedicated endpoints. It can also update tags, suspend users, and read enrollments.

Do we need a dedicated developer to maintain the integration long-term?

Plan for some ongoing developer time. Access tokens expire and need renewing. Version 1 of the API is no longer supported, so integrations need to keep up with the current version.

How to set up the LearnWorlds API integration

You need a developer who can send HTTP requests. At the end, your system makes authenticated calls to your school.

1. Request API keys

Go to Settings > Developers > API and click Request API keys. Your Client ID and Client Secret appear automatically.

2. Copy keys and URL

Click Show to see the keys, then copy them along with the API URL. You can also regenerate the keys from the same screen.

3. Get an access token

Send your Client ID and Client Secret to the access token endpoint with the client credentials grant. Requires: a developer.

4. Add the required headers

Put your School ID in the Lw-Client header and the token in the Authorization header as a Bearer value on every request.

5. Manage access tokens

In Settings > Developers > API, check each token’s expiration date. Create new tokens or revoke old ones there. For the full setup guide, see the LearnWorlds API help article.

Who uses the LearnWorlds API integration and how

IT teams provisioning learners from internal systems

A new employee is added to an internal system. A script creates the LearnWorlds user and enrolls them in a product, so nobody adds accounts by hand.

Developers running scheduled maintenance jobs

A cron job authenticates with the client credentials grant and runs routine updates, such as suspending users or updating tags, without anyone logging in.

FAQs

No. API keys start on the Learning Center plan, so Starter and Pro Trainer schools need to upgrade first. See plan details for the full comparison.

No. The API answers requests your system sends. For real-time events, LearnWorlds sends webhooks, which you set up under Settings > Developers > Webhooks.

Yes. LearnWorlds allows 30 requests every 10 seconds. Extra requests fail with a 429 Too Many Requests error.

OAuth2. Use the client credentials grant for machine-to-machine jobs, or the resource owner grant for trusted clients like your own mobile app. Send the access token as a Bearer value in the Authorization header.

Yes, if you manage users or enrollments in another system. One request can create a user or enroll them, so admins stop doing it by hand. Browse other LearnWorlds integrations if you need a no-code option.

Published:

Last Update: