• Applicable Software: MokoWaaS (Joomla)
  • Applicable Version: 02.64.00

REST API Endpoints

Routes are registered by plg_webservices_mokosuitebackup and are wire-compatible with the mcp_mokosuitebackup MCP server. The API Application and the Web Services plugin must be enabled. All routes require authentication — send a Joomla API token in the X-Joomla-Token header (or a Bearer token):

X-Joomla-Token: <your-api-token>
Accept: application/json

Base URL: /api/index.php/v1/mokosuitebackup/.... Each action also enforces a component ACL permission; a failed check returns HTTP 403.

Backup Endpoints

MethodEndpointDescription
POST/mokosuitebackup/backupStart a backup (body: profile + description, both optional)
GET/mokosuitebackup/backupsList backup records
GET/mokosuitebackup/backups/:idGet a single record
DELETE/mokosuitebackup/backup/:idDelete a backup record + archive
GET/mokosuitebackup/backup/:id/downloadDownload the archive (binary stream)
GET/mokosuitebackup/profilesList backup profiles (credentials masked)

Snapshot Endpoints

Content snapshots capture selected content types (articles, categories, modules) as portable JSON. All require the mokosuitebackup.snapshot.manage permission.

MethodEndpointDescription
GET/mokosuitebackup/snapshotsList snapshots (paginated)
POST/mokosuitebackup/snapshotCreate a snapshot
POST/mokosuitebackup/snapshot/:id/restoreRestore from a snapshot
POST/mokosuitebackup/snapshot/injectInject a payload directly (master → slave)
DELETE/mokosuitebackup/snapshot/:idDelete a snapshot + its data file
GET/mokosuitebackup/snapshot/:id/downloadDownload the snapshot JSON

MCP Server

The mcp_mokosuitebackup MCP server is wire-compatible with these endpoints, so an AI assistant can start backups, list records, manage profiles, and create or inject content snapshots remotely.

CLI

php cli/joomla.php mokosuitebackup:run --profile=1
php cli/joomla.php mokosuitebackup:run --profile=2 --description="Pre-deploy"