Skip to main content

API Integration Setup - U.S. Schools

Written by Technical Team

1 Click Site Administration > General > Advanced features

2 Check Enable web services, then click Save changes

3 Go back to Site administration, click Server tab

4 Click Manage protocols

5 Enable the REST protocol and Save Changes

6 Go back to Site administration > Server and click External services

7 Click Add

8 Name it Kritik, check Enabled, check Authorized users only, then click Add service

9 Click Add functions

10 Add each of the following via the `Add functions button:

  • core_webservice_get_site_info

  • gradereport_user_get_grade_items

  • core_grades_update_grades

  • core_enrol_get_enrolled_users

  • core_group_get_course_groups

  • core_group_get_course_groupings

  • core_group_get_groupings

  • core_group_get_group_members

  • core_calendar_create_calendar_events

  • core_calendar_delete_calendar_events

11 Go back to External services and click Authorized users:

12 Create a Kritik Admin user by clicking Users > Accounts > Add a new user

13 Fill in the following:

  • Username: kritik

  • New password: Any password you want (remember to record it somewhere!)

  • First name: Kritik

  • Last name: API

  • Email address: An production admin address (ie. admin@yourschool.com)

14 Click Create user

15 Click Site Administration > Server > External Services

16 Click Authorised users

17 Find the user you just created (ie. kritik) on the right and click Add

18 Click Site administration > Server Manage tokens

19 Click Create token

20 Set the User and Service and click Save changes

  • User: kritik

  • Service: Kritik

21 You should see the newly created API token

22 Finally, copy the token above and your LMS URL and send it to lms@kritik.io

  • Token: xxx

  • LMS URL: The URL to your Moodle instance

That's it! Once we receive the token. We'll reply after confirming it works on our end!

Did this answer your question?