Generate a Moodle API Key

You need an API Key to connect Moodle with SearchUnify. This guide walks you through the process of generating it. The process involves to stages. In the first stage, web services are enables and in the second stage an API key is generated.

Enable Web Services

  1. Log into Moodle and click Site administration.

  2. Go to Plugins.

  3. Scroll down to Web services and click Overview.

  4. Open Enable Web Services.

  5. Uncheck Default: No and Save changes.

Generate a Key

  1. Return to Plugins from Site administration, scroll down to Web services, and open Manage tokens.

  2. Click Add.
  3. Select a User from the Search dropdown.
    1. Filling the IP Restriction field is optional.

  4. Click on a Valid until date and Save Changes.
  5. Copy the API from the Token column.