mos-docs

MOS API Overview

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:


API Documentation

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:

image


API Structure

The API is organized into logical sections, such as:

Each section groups all related endpoints for that subsystem.


Authentication & Authorization

Most API endpoints require authentication.

The MOS API uses Bearer Token authentication.


Creating an API Token

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:

image


Authorizing in the API Docs

The API documentation UI includes an Authorize button.

Steps to authorize:

  1. Open the API documentation

http://<MOS-IP>/api-docs/

  1. Click Authorize

  2. Enter the token:

image

  1. Confirm authorization

Once authorized:


Executing API Calls

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:


Example: Disk Listing

The GET /disks endpoint returns a live overview of all detected disks, including:

Optional parameters allow controlling:


Important Notes

This ensures consistent behavior between:


Summary

The MOS API is the central control layer of the system.

For advanced users, the API unlocks the full potential of MOS.