Plugins API

API Reference

Requires Bearer token + admin role.

List all discovered plugins with their current enabled state and settings.

// Response 200
[
  {
    "name": "form-builder",
    "displayName": "Form Builder",
    "version": "1.0.0",
    "description": "Build and manage contact forms.",
    "author": "Domma Team",
    "date": "2024-01-01",
    "icon": "clipboard",
    "enabled": true,
    "settings": {}
  }
]

Requires Bearer token + admin role.

Enable or disable a plugin, or update its settings.

Field Type Description
enabled boolean Whether the plugin is active
settings object Plugin-specific settings object
// Response 200
{ "success": true }

// Error 404 { "error": "Plugin not found" }

Requires Bearer token (any role).

Return the merged admin configuration for all enabled plugins — sidebar items, SPA routes, and view entry points.

// Response 200
{
  "sidebar": [ { "id": "form-builder", "text": "Form Settings", "icon": "clipboard", "url": "#/form-settings" } ],
  "routes": [ { "path": "/form-settings", "view": "formSettings", "title": "Form Settings - Domma CMS" } ],
  "views": { "formSettings": { "entry": "form-builder/admin/views/settings.js", "exportName": "formSettingsView" } }
}