MOS provides a fully documented REST API that is used internally by the web interface. The WebUI does not perform direct system actions on its own — it communicates exclusively through the MOS API.
This makes the system:
The API documentation is available via the built-in Swagger UI.
Open the following URL in your browser:
http://<MOS-IP>/api-docs/
The API documentation provides:
Example:
The API is organized into logical sections, such as:
Each section groups all related endpoints for that subsystem.
Most API endpoints require authentication.
The MOS API uses Bearer Token authentication.
API tokens can be created in the WebUI.
Navigate to:
User Settings → Admin API Tokens
From there you can:
Important:
Store API tokens securely. Tokens provide administrative access depending on user permissions.
Example:
The API documentation UI includes an Authorize button.
Steps to authorize:
http://<MOS-IP>/api-docs/
Click Authorize
Enter the token:
Once authorized:
After authorization, API endpoints can be executed directly using the Try it out feature.
This allows you to:
Some endpoints support optional parameters, such as:
The GET /disks endpoint returns a live overview of all detected disks, including:
Optional parameters allow controlling:
This ensures consistent behavior between:
The MOS API is the central control layer of the system.
For advanced users, the API unlocks the full potential of MOS.