Jentic OSThe workplace. An in-house AI platform for every employeeJentic OneSafe access. Agents reach your systems without holding keysJentic AIRThe foundation. Gets your existing platforms ready for AI
Pricing

GET STARTED

API DirectoryBrowse 10,000+ APIs ready for AI agent integrationDocumentationGuides and API reference

TOOLS

API ScoringCheck your AI readiness using our scorecardArazzo UIVisualize Arazzo workflows as interactive documentationArazzo EditorBuild and edit multi-step API workflows visually

COMMUNITY

GitHubOpen source projects and examplesOpen StandardsBuilt on open specs. Never locked in.
All ResourcesEverything in one placeBlogLatest articles and insightsTech Talk NewsletterAPIs, AI agents, architecture and strategyWebinarsLive sessions and on-demand recordingsReports & WhitepapersOriginal research on enterprise AI
About UsOur mission and teamCareersJoin our teamContactGet in touch
Try it now
Jentic OSJentic OneJentic AIR
Pricing
API DirectoryDocumentationAPI ScoringArazzo UIArazzo EditorGitHubOpen Standards
All ResourcesBlogTech Talk NewsletterWebinarsReports & Whitepapers
About UsCareersContact
Try it now
JenticJentic
Products
  • Jentic OS
  • Jentic One
  • Jentic AIR
For Developers
  • API Directory
  • Documentation
  • GitHub
Company
  • About Jentic
  • Careers
  • Contact Us
  • Trust Centre
ISO/IEC 27001:2022 certification badge issued by Prescient SecurityISO/IEC 27001:2022 certification badge issued by Prescient Security

Information Security Management System

Certified to ISO/IEC 27001:2022 by Prescient Security

AICPA SOC for Service Organizations logoAICPA SOC for Service Organizations logo

SOC 2® Type 1 report

Audited by Prescient Assurance

Terms & Conditions•Privacy Policy•
© 2026 Jentic Technology Ltd. All rights reserved.
2 Grattan Court East, Dublin, D02 VX86, Ireland
Switch to light modeSwitch to dark mode
APIs / Education / Moodle Web Services API
Moodle Web Services API logo

Moodle Web Services API

43
AI ReadinessFoundational (D-)43/100
See full scorecard
Agent-ready OpenAPI document · curated by JenticEducationLmsapiKey90 EndpointsREST

Know of an official OpenAPI document? Contribute it →

For Agents

Execute 90 Moodle web service functions covering user management, course operations, grading, assignments, quizzes, forum posts, messaging, and calendar events on any Moodle 4.5 instance.

Use for: I need to enroll a user in a Moodle course, Retrieve all assignment submissions for a course, I want to create a new course in a specific category, Get the grades table for a student in a course

Not supported: Does not handle Moodle plugin installation, theme customization, or server administration - use for web service data operations only.

Jentic publishes the only available OpenAPI specification for Moodle Web Services API, keeping it validated and agent-ready. Exposes 90 RPC-style web service functions for managing users, courses, enrollments, grades, assignments, quizzes, forums, calendar events, messages, competencies, and file uploads on self-hosted Moodle instances. Authentication uses a wstoken passed as a query parameter, obtained from the /login/token.php endpoint. Supports Moodle 4.5 with coverage across core subsystems including course completion tracking and competency frameworks.

Jentic One on GithubView OpenAPI Document

Install Jentic One Beta

Connect the Moodle Web Services API to your agent

Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the Moodle Web Services API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.

Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.

1

Step 1: Jentic One Host machine

# On the machine that will host your Jentic One instance:
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fmoodle.org%2Fmoodle" | sh
2

Step 2: Agent machine

# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fmoodle.org%2Fmoodle" | sh
jentic register       # connects your agent to your Jentic One instance

Jentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.

Capabilities

What an agent can do with Moodle Web Services API.

Enroll and unenrol users from courses with automatic role assignment

Retrieve and submit assignment grades with feedback across all course participants

Search and create courses with full metadata including categories and timelines

Send messages to conversations and manage user blocking and read receipts

Track activity completion and course completion status per user

Upload files and manage course content modules programmatically

Query competency frameworks and evaluate user competency progress

Use Cases

Patterns agents use Moodle Web Services API for, with concrete tasks.

★ AI Agent Course and Enrollment Management

AI agents use the Moodle Web Services API through Jentic to automate course creation, user enrollment, and role assignment on self-hosted Moodle instances. The agent searches for enrollment functions like enrol_manual_enrol_users, loads the parameter schema, and executes without navigating Moodle's web service plugin configuration. This enables automated provisioning of courses and cohorts at the start of each academic term across institutions running Moodle 4.5.

Enroll user ID 42 in course ID 7 with the student role using the enrol_manual_enrol_users web service function

Assignment Grading and Feedback Workflow

Programmatically retrieve assignment submissions, apply grades, and submit feedback across entire courses. The mod_assign_get_submissions function returns all student submissions for an assignment, mod_assign_get_grades retrieves existing grades, and mod_assign_save_grade saves a new grade with feedback. This supports automated grading pipelines and bulk feedback distribution for courses with hundreds of students.

Retrieve submissions for assignment module in course 15 via mod_assign_get_submissions, then save a grade of 85 with feedback using mod_assign_save_grade

Student Progress Tracking and Completion

Monitor student progress through courses by querying activity completion status, course completion records, and grade reports. The core_completion_get_activities_completion_status function returns completion state for all activities in a course, while gradereport_user_get_grade_items provides the full grade breakdown. This enables early-intervention dashboards that identify students falling behind.

Check completion status for user 99 in course 20 using core_completion_get_course_completion_status and list incomplete activities via core_completion_get_activities_completion_status

Forum and Messaging Automation

Automate forum participation monitoring and direct messaging within Moodle. The mod_forum_get_forum_discussions function lists all discussion threads, mod_forum_get_discussion_posts retrieves replies, and mod_forum_add_discussion creates new threads. The messaging subsystem supports sending instant messages, retrieving conversations, and managing read state across 90 web service endpoints.

Post a new discussion titled 'Week 5 Assignment Q&A' in the forum for course 12 using mod_forum_add_discussion

Key Endpoints

90 endpoints — jentic publishes the only available openapi specification for moodle web services api, keeping it validated and agent-ready.

METHOD

PATH

DESCRIPTION

POST

/webservice/rest/enrol_manual_enrol_users

Enroll users in courses with role assignment

POST

/webservice/rest/core_course_create_courses

Create new courses with metadata

POST

/webservice/rest/core_course_search_courses

Search courses by keyword

POST

/webservice/rest/mod_assign_get_submissions

Get all submissions for an assignment

POST

/webservice/rest/mod_assign_save_grade

Save a grade with feedback for a submission

POST

/webservice/rest/core_user_create_users

Create new user accounts in bulk

POST

/webservice/rest/gradereport_user_get_grade_items

Get grade items for a user in a course

POST

/login/token.php

Obtain a web service token for authentication

POST

/webservice/rest/enrol_manual_enrol_users

Enroll users in courses with role assignment

POST

/webservice/rest/core_course_create_courses

Create new courses with metadata

POST

/webservice/rest/core_course_search_courses

Search courses by keyword

POST

/webservice/rest/mod_assign_get_submissions

Get all submissions for an assignment

POST

/webservice/rest/mod_assign_save_grade

Save a grade with feedback for a submission

POST

/webservice/rest/core_user_create_users

Create new user accounts in bulk

POST

/webservice/rest/gradereport_user_get_grade_items

Get grade items for a user in a course

POST

/login/token.php

Obtain a web service token for authentication

Jentic AI Readiness Score

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

M

Moodle Web Services API

- Foundational (D-)
43/100
74
Foundational Compliance
63
Developer Experience & Jentic Compatibility
45
AI-Readiness & Agent Experience
87
Agent Usability
15
Security
38
AI Discoverability
Powered by JenticScoring Framework 1.0.0 | Scoring Engine 0.4.0
Show dimension breakdown
74

Foundational Compliance

Base layer of spec validity and structural soundness.

Grade: A-Signals: 4
96%

Lint Results

Aggregated quality score from linter diagnostics, weighted by severity.

100%

Resolution Completeness

Percentage of `$ref` references that resolve successfully.

100%

Specification Validity

Checks whether the API description parses successfully and conforms to its declared specification (e.g., OpenAPI).

0%

Structural Integrity

Structural correctness score based on schema issues using logarithmic dampening.

63

Developer Experience & Jentic Compatibility

Clarity, completeness, and ingestion readiness for developers and tooling.

Grade: B-Signals: 4
0%

Example Density

How richly the API is illustrated with examples.

100%

Example Validity

Percentage of examples that conform to their schemas.

50%

Response Coverage

Percentage of operations with complete response definitions (success, client error, server error).

100%

Tooling Readiness

Health of API ingestion, bundling, and resolution within Jentic pipelines.

45

AI-Readiness & Agent Experience

Semantic breadth, depth, and agent comprehension for AI systems.

Grade: DSignals: 4
28%

Description Coverage

Coverage of descriptions across API elements.

0%

Error Standardization

Coverage of RFC 9457 Problem Details for error responses.

100%

OperationId Quality

Coverage, uniqueness, and casing consistency of operationIds for AI inference.

50%

Summary Coverage

Coverage of summaries across operations/tags/info.

87

Agent Usability

Functional utility, complexity comfort, and AI orchestration readiness.

Grade: ASignals: 1
87%

Complexity Comfort

Agent comfort level based on API operational and structural complexity.

15

Security

Trust, risk posture, and security compliance.

Grade: FSignals: 1
15%

Authentication Strength

Average quality of security schemes based on authentication method strength (weakest link for OAuth2).

38

AI Discoverability

Findability, semantic richness, and reasoning readiness.

Grade: FSignals: 1
38%

Descriptive Richness

Clarity and depth of descriptions across API elements.

View full reportHow the score is calculatedMore about the dimensions

Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

Score your own APIScoring CLI agent skill
npx @jentic/api-scorecard-cli score <openapi-url>

Why Jentic?

What agents get from Jentic-routed access to this vendor.

Setup

Wiring Moodle by hand means minting a web service token, targeting your own instance host, and passing the wstoken as a query parameter on every REST function call. Through Jentic you install once, import the Moodle Web Services API from the API Directory, store the token once, and your agent calls it.

Permission scoping

Moodle addresses each action by function name rather than a resource path, so limit the agent to the operations it needs, such as searching courses or reading grade items. You choose the operations it may call, so writes like creating users or saving grades are not included unless you add them.

Credential isolation

Your Moodle web service token is stored once, encrypted, by your own Jentic One instance and injected as the wstoken parameter at execution time. It never enters the agent's prompt, logs, or context.

Intent-based discovery

Agents search Jentic by intent such as 'enroll a user in a Moodle course' or 'read a student's grades', and Jentic returns the matching Moodle web service function with its parameter schema, so the agent calls the right function without navigating Moodle's plugin documentation.

Related APIs

Alternatives and complements available in the Jentic catalogue.

Alternative

Schoology REST API

→

Schoology is a commercial K-12 LMS with RESTful endpoints; Moodle is open-source with RPC-style web services

Use Schoology when the institution uses Schoology's SaaS platform. Use Moodle when the institution runs a self-hosted Moodle instance with web services enabled.

Alternative

D2L Brightspace Valence API

→

Brightspace is a commercial LMS focused on higher education; Moodle is open-source and self-hosted

Use Brightspace when the institution uses D2L's hosted platform. Use Moodle when integrating with self-hosted Moodle instances where you have admin access to enable web services.

Complementary

Clever Data API

→

Clever provides read-only SIS roster data; Moodle handles full LMS operations including course content and grading

Use Clever to pull student roster data from the SIS layer. Use Moodle to manage courses, grades, assignments, and enrollment within the LMS itself.

FAQs

Specific to using Moodle Web Services API through Jentic.

Why is there no official OpenAPI spec for Moodle Web Services API?

Moodle does not publish an OpenAPI specification. Jentic generates and maintains this spec so that AI agents and developers can call Moodle Web Services API via structured tooling. It is validated against the live API and kept up to date. Get started with Jentic One, the self-hosted execution layer.

What authentication does the Moodle Web Services API use?

Moodle uses an API key (wstoken) passed as a query parameter on every request. Tokens are obtained from the /login/token.php endpoint using username and password credentials plus the service shortname. Through Jentic, the wstoken is stored in the encrypted Jentic One instance, so agents authenticate without handling raw credentials.

Can I enroll users in a Moodle course with the API?

Yes. Use the enrol_manual_enrol_users function, which accepts an array of enrollments each specifying a user ID, course ID, and role ID (5 for student, 3 for teacher). You can also use enrol_manual_unenrol_users to remove enrollments or enrol_self_enrol_user for self-service enrollment.

How do I retrieve assignment grades for a student through Jentic?

Search Jentic for 'get moodle assignment grades' to find the gradereport_user_get_grade_items function. This returns all grade items for a specific user in a course, including assignment grades, quiz scores, and computed totals. Install with pip install jentic, then search, load the schema, and execute with the user and course IDs.

What are the rate limits for the Moodle Web Services API?

Rate limits depend on the Moodle instance configuration set by the site administrator. There are no universal limits in the spec. Administrators typically configure request throttling via the Moodle security settings. Self-hosted instances can adjust these limits based on server capacity.

Does the Moodle API support file uploads?

Yes. The core_files_upload function handles file uploads to Moodle's file system. You provide the file content, filename, and target context (course, user, etc.). The core_files_get_files function retrieves file listings from any file area in the system.

Can I limit what my agent is allowed to do with the Moodle Web Services API?

Yes. Because Moodle addresses each action by function name rather than a resource path, your self-hosted Jentic One instance lets you allow only the specific functions your agent needs, such as core_course_search_courses or gradereport_user_get_grade_items for read-only work. Write functions like enrol_manual_enrol_users, core_user_create_users, or mod_assign_save_grade stay off-limits unless you explicitly add them. Your own rules decide which operations the agent may call and which stored wstoken it uses, so the agent never has access beyond what you grant.

GET STARTED

Start building with Moodle Web Services API

Explore with Jentic One
View OpenAPI Document