1
REST API
Jonathan Miller edited this page 2026-06-02 19:02:26 -05:00

REST API

MokoJoomBackup provides a REST API via the plg_webservices_mokobackup plugin.

Authentication

All endpoints require a Joomla API token with Super User access:

Authorization: Bearer <joomla-api-token>

Endpoints

Start a Backup

POST /api/index.php/v1/mokobackup/backup
{"profile": 1, "description": "API backup"}

List Backup Records

GET /api/index.php/v1/mokobackup/backups

Delete a Backup

DELETE /api/index.php/v1/mokobackup/backup/:id

Download a Backup

GET /api/index.php/v1/mokobackup/backup/:id/download

List Profiles

GET /api/index.php/v1/mokobackup/profiles

MCP Server Compatibility

The mcp_mokobackup MCP server supports both Akeeba and MokoJoomBackup backends. Set target type to "mokobackup" in the config:

{
  "targets": {
    "mysite": {
      "type": "mokobackup",
      "siteUrl": "https://example.com",
      "secretWord": "joomla-api-token",
      "profileId": 1,
      "localBackupDir": "A:/var/backups/mysite"
    }
  }
}

The existing akeeba_* MCP tools auto-detect the target type and use the correct API endpoint.