System

System configuration operations

Get system health

get
/system/health

Checks the health status of the system.

This endpoint does not require authentication and can be used for monitoring.

Responses
200

System health information

application/json
get
/system/health
GET /v1/system/health HTTP/1.1
Host: api.maisa.com
Accept: */*
200

System health information

{
  "status": "healthy",
  "components": {
    "database": {
      "status": "up",
      "message": "Connected"
    },
    "cache": {
      "status": "up",
      "message": "Connected"
    },
    "storage": {
      "status": "up",
      "message": "Connected"
    }
  },
  "version": "1.2.0"
}

Get system configuration

get
/system/config

Retrieves the current system configuration

Authorizations
Responses
200

System configuration

application/json
get
/system/config
GET /v1/system/config HTTP/1.1
Host: api.maisa.com
X-API-Key: YOUR_API_KEY
Accept: */*
{
  "data": {
    "general": {
      "siteName": "Maisa System",
      "defaultLanguage": "en",
      "supportEmail": "[email protected]"
    },
    "security": {
      "sessionTimeout": 3600,
      "loginAttempts": 5,
      "passwordPolicy": {
        "minLength": 8,
        "requireUppercase": true,
        "requireNumbers": true,
        "requireSpecialChars": true
      }
    },
    "email": {
      "enabled": true,
      "from": "[email protected]",
      "smtpHost": "smtp.maisa.com",
      "smtpPort": 587
    },
    "features": {
      "analytics": true,
      "projects": true
    }
  }
}

Update system configuration

put
/system/config

Updates the system configuration.

Authorizations
Body
Responses
200

System configuration updated successfully

application/json
put
/system/config
PUT /v1/system/config HTTP/1.1
Host: api.maisa.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 360

{
  "general": {
    "siteName": "text",
    "defaultLanguage": "text",
    "supportEmail": "[email protected]"
  },
  "security": {
    "sessionTimeout": 1,
    "loginAttempts": 1,
    "passwordPolicy": {
      "minLength": 1,
      "requireUppercase": true,
      "requireNumbers": true,
      "requireSpecialChars": true
    }
  },
  "email": {
    "enabled": true,
    "from": "text",
    "smtpHost": "text",
    "smtpPort": 1
  },
  "features": {
    "analytics": true,
    "projects": true
  }
}
{
  "data": {
    "general": {
      "siteName": "Maisa System",
      "defaultLanguage": "en",
      "supportEmail": "[email protected]"
    },
    "security": {
      "sessionTimeout": 3600,
      "loginAttempts": 5,
      "passwordPolicy": {
        "minLength": 8,
        "requireUppercase": true,
        "requireNumbers": true,
        "requireSpecialChars": true
      }
    },
    "email": {
      "enabled": true,
      "from": "[email protected]",
      "smtpHost": "smtp.maisa.com",
      "smtpPort": 587
    },
    "features": {
      "analytics": true,
      "projects": true
    }
  },
  "restartRequired": true
}