Skip to main content
This walkthrough creates a learner, puts them on a course, gives them a link to open hackU and reads their progress. Use the test environment while you build.
1

Check your key

A 200 means the key works. A 403 means it is missing or invalid: see Authentication.
2

Pick a course

List your company’s courses and their modules:
Keep the course id and the pk of the module the user should start on (usually the first one in contentmoduleroute_set).If your company defines extra fields (area, region…), read which ones are required and their allowed values with GET /clients/{company_slug}/extra-fields/.
3

Create the user

user_pk is the user’s id in every other call. The call is idempotent by email: posting the same email again returns 200 with the same user_pk instead of creating a duplicate.hour and selected_days set when the user receives content. The user is activated on creation; add send_welcome_message: true to also send the WhatsApp welcome message, or silent_creation: true to create them without activating them yet.
4

Put them on the course

To enroll them in a pensum (a learning path of several courses) instead, see Enrollment.
5

Open hackU for them

The URL logs the user in without a password. Send it only to that user, for example from your intranet. It works as a credential: do not log it or share it.
6

Read their progress

Each course comes with its progress_percentage and finish_date. Evaluations, surveys and certificates have their own endpoints under /clients/users/{user_id}/.