Login/Register

Automation API: List of available HTTP interface methods

Input/output

All output will be JSON formatted.

If JSON input is preferred to URL key-value pairs, JSON can be sent in the raw HTTP POST data.

Table of contents

List available applications and application information

HTTP GET or POST:

/url/to/installatron?api=json&cmd=browser
/url/to/installatron?api=json&cmd=browser&application=magento

Optional arguments:

  • application: The ID of the application to list available versions of. This can be a single application or an array of multiple applications. By default the latest version of each application is listed.
  • version: When "application" set to one application, set this to only list the specific version.
  • from-version: When "application" set to one application, set this to list all versions the specified version can be upgraded to.
  • versions-available-from: When "application" set to one application, instead of the usual output this will return two lists, "versions-available" and "versions-available-minor", each listing the versions upgradable to from the specified value.
  • language: The language application information should be returned in. For example, "en" for English or "zh_tw" for Chinese Traditional. If omitted, the defined website's default language or English is assumed. See: Available Installatron Translations.

Return value:

  • result: true on success, or false on failure.
  • message: Will be an empty string.
  • data: List of available applications.

Install an application

Note: When the install is complete, the new install owner will be emailed install login information.

HTTP GET or POST:

/url/to/installatron?api=json&cmd=install

Required arguments:

  • application: The ID of the application to be installed. For example, "wordpress" or "magento". See: List of applications.

Optional arguments:

  • user: If authenticated as a reseller, admin, or super-user, this argument must be set to the control panel account the install is for.
  • version: The version of the application to be installed. If omitted, the latest, compatible version is assumed.
  • autoup: Change automatic update configuration. Values: 0 = Off (default); 1 = Update to minor versions only; 2 = Update to any version.
  • url: The URL to where the application should be installed. If omitted, the application is installed in the root directory of the first available domain.
  • url-ip: If the DNS will not resolve the provided "url" to the correct IP, use this argument to provide the correct IP. This argument is typically omitted.
  • background: When defined, the request will exit immediately and the task will be transferred to a background process. Use the tasks API to query the status of the background task.

Optional database arguments:

  • db: Set this to "auto" to create a new database for the application, or "manual" to specify an existing database for the application.
  • db-host: The database server.
  • db-name: The pre-created database.
  • db-user: The pre-created database username.
  • db-pass: The pre-created database password.
  • db-prefix: If a database prefix other than the default prefix should be used, specify the value here.

Further optional arguments that may be ignored by some applications:

  • language: The language of the application to be installed. For example, "en" for English or "zh-tw" for Chinese Traditional. If omitted, the user's default language or English is assumed.
  • login: The username for the installed application's administrative account. If omitted, typically a randomized admin username is assumed.
  • passwd: The password for the installed application's administrative account. If omitted, a randomized password is assumed.
  • sitetitle: The site title value for the installed application. If omitted, "My {type}" is assumed, where {type} is the type of application. For example, "My Forum".
  • content: Should the application be installed with demo content? Valid values: "yes" or "no". If omitted, "no" is typically assumed.

Return value:

  • result: true on success, or false on failure.
  • message: Success or failure message.
  • data: Table of installed application information.
  • task: Table of task information if executed as a background process.

Import an existing application

HTTP GET or POST:

/url/to/installatron?api=json&cmd=import

Required arguments:

  • application: The ID of the application to be installed. For example, "wordpress" or "magento". See: List of applications.

Optional arguments:

  • user: If authenticated as a reseller, admin, or super-user, this argument must be set to the control panel account the install is for.
  • version: The version of the application to be imported. If omitted, the installed version is detected.
  • url: The URL to where the application is installed.
  • url-ip: If the DNS will not resolve the provided "url" to the correct IP, use this argument to provide the correct IP. This argument is typically omitted.

Return value:

  • result: true on success, or false on failure.
  • message: Success or failure message.
  • data: Further details regarding the success or failure.

List installed applications or backups

HTTP GET or POST:

/url/to/installatron?api=json&cmd=installs
/url/to/installatron?api=json&cmd=backups

Optional arguments:

  • user: If authenticated as a reseller, admin, or super-user, set this argument to the user installed applications should be listed for.
  • filter-version-available=yes: Only list installed applications that have new version upgrades available.

Return value:

  • result: true on success, or false on failure.
  • message: Success or failure message.
  • data: List of matched installed applications or backups.

View/sync an installed application

HTTP GET or POST:

/url/to/installatron?api=json&cmd=details

Required arguments:

  • id: The ID of the installed application to be synced and displayed.

Optional arguments:

  • user: If authenticated as a reseller, admin, or super-user, this argument must be set to the owner of the installed application.

Return value:

  • result: true on success, or false on failure.
  • message: Success or failure message.
  • data: Application details, similar to the "installs" API return value.

Edit an installed application

Note: Optional arguments can be omitted if they should remain unchanged.

HTTP GET or POST:

/url/to/installatron?api=json&cmd=edit

Required arguments:

  • id: The ID of the installed application to be edited, a list of installed application ID's separated by a plus (+), or an asterisk can be specified to match all installed applications on the server.

Optional arguments:

  • user: If authenticated as a reseller, admin, or super-user, this argument must be set to the owner of the installed application.
  • url: The URL to the installed application.
  • autoup: Change automatic update configuration. Values: 0 = Off; 1 = Update to minor versions only; 2 = Update to any version.
  • db-host: The server that hosts the installed application's database.
  • db-name: The name of the installed application's database.
  • db-user: The database username used to connect to the installed application's database.
  • db-pass: The database username password.
  • db-prefix: The prefix each database table begins with, including trailing underscore (if any).

Return value:

  • result: true on success, or false on failure.
  • message: Success or failure message.
  • data: Further details regarding the success or failure.

Backup an installed application

HTTP GET or POST:

/url/to/installatron?api=json&cmd=backup

Required arguments:

  • id: The ID of the installed application to be backed up, a list of installed application ID's separated by a plus (+), or an asterisk can be specified to match all installed applications on the server.

Optional arguments:

  • user: If authenticated as a reseller, admin, or super-user, this argument must be set to the owner of the installed application.
  • background: When defined, the request will exit immediately and the task will be transferred to a background process. Use the tasks API to query the status of the background task.

Return value:

  • result: true on success, or false on failure.
  • message: Success or failure message.
  • data: Further details regarding the success or failure.
  • task: Table of task information if executed as a background process.

Clone an installed application

HTTP GET or POST:

/url/to/installatron?api=json&cmd=clone

Required arguments:

  • id: The ID of the installed application to be cloned.

Optional arguments:

  • user: If authenticated as a reseller, admin, or super-user, this argument must be set to the control panel account the install is for.
  • url: The URL to where the application should be installed. If omitted, the application is installed in the root directory of the first available domain.
  • url-ip: If the DNS will not resolve the provided "url" to the correct IP, use this argument to provide the correct IP. This argument is typically omitted.
  • background: When defined, the request will exit immediately and the task will be transferred to a background process. Use the tasks API to query the status of the background task.

Optional database arguments:

  • db: Set this to "auto" to create a new database for the cloned application, or "manual" to specify an existing database for the cloned application.
  • db-host: The database server.
  • db-name: The pre-created database.
  • db-user: The pre-created database username.
  • db-pass: The pre-created database password.
  • db-prefix: If a database prefix other than the default prefix should be used, specify the value here.

Return value:

  • result: true on success, or false on failure.
  • message: Success or failure message.
  • data: Table of installed application information.
  • task: Table of task information if executed as a background process.

Migrate an installed application from a different server

Note: This is correctly the same command as import—the inclusion of the source-ftu and soruce-url arguments instruct Installatron to treat the request as a migration.

HTTP GET or POST:

/url/to/installatron?api=json&cmd=import

Required arguments:

  • source-ftu: The FTP URI to the source installed application. For example, "ftp://user:pass@website.com/public_html/wordpress".
  • source-url: The URL to the source installed application. For example, "http://website.com/wordpress".

Optional arguments:

  • user: If authenticated as a reseller, admin, or super-user, this argument must be set to the control panel account the install is for.
  • url: The URL to where the application should be migrated to. If omitted, the application is installed in the root directory of the first available domain.
  • url-ip: If the DNS will not resolve the provided "url" to the correct IP, use this argument to provide the correct IP. This argument is typically omitted.
  • source-url-ip: If the DNS will not resolve the provided "source-url" to the correct IP, use this argument to provide the correct IP. This argument is typically omitted.
  • background: When defined, the request will exit immediately and the task will be transferred to a background process. Use the tasks API to query the status of the background task.

Optional database arguments:

  • db: Set this to "auto" to create a new database for the migrated application, or "manual" to specify an existing database for the migrated application.
  • db-host: The database server.
  • db-name: The pre-created database.
  • db-user: The pre-created database username.
  • db-pass: The pre-created database password.
  • db-prefix: If a database prefix other than the default prefix should be used, specify the value here.

Return value:

  • result: true on success, or false on failure.
  • message: Success or failure message.
  • data: Table of installed application information.
  • task: Table of task information if executed as a background process.

Upgrade an installed application

Note: It's always recommended to create a backup prior to upgrading any installed application.

HTTP GET or POST:

/url/to/installatron?api=json&cmd=upgrade

Required arguments:

  • id: The ID of the installed application to be upgraded, a list of installed application ID's separated by a plus (+), or an asterisk can be specified to match all installed applications on the server.

Optional arguments:

  • user: If authenticated as a reseller, admin, or super-user, this argument must be set to the owner of the installed application.
  • version: The version to be upgraded to. If omitted, the latest, compatible version is assumed.
  • revert: If set to 'yes', a backup will be created prior to attempting the upgrade, and the backup will automatically be restored if the upgrade fails.
  • background: When defined, the request will exit immediately and the task will be transferred to a background process. Use the tasks API to query the status of the background task.

Return value:

  • result: true on success, or false on failure.
  • message: Success or failure message.
  • data: Further details regarding the success or failure.
  • task: Table of task information if executed as a background process.

Restore an installed application backup

HTTP GET or POST:

/url/to/installatron?api=json&cmd=restore

Required arguments:

  • id: The ID of the installed application backup to be restored.

Optional arguments:

  • user: If authenticated as a reseller, admin, or super-user, this argument must be set to the owner of the installed application.
  • background: When defined, the request will exit immediately and the task will be transferred to a background process. Use the tasks API to query the status of the background task.

Return value:

  • result: true on success, or false on failure.
  • message: Success or failure message.
  • data: Further details regarding the success or failure.
  • task: Table of task information if executed as a background process.

Uninstall an installed application

HTTP GET or POST:

/url/to/installatron?api=json&cmd=uninstall

Required arguments:

  • id: The ID of the installed application to be uninstalled, a list of installed application ID's separated by a plus (+), or an asterisk can be specified to match all installed applications on the server.

Optional arguments:

  • user: If authenticated as a reseller, admin, or super-user, this argument must be set to the owner of the installed application.
  • background: When defined, the request will exit immediately and the task will be transferred to a background process. Use the tasks API to query the status of the background task.

Return value:

  • result: true on success, or false on failure.
  • message: Success or failure message.
  • data: Further details regarding the success or failure.
  • task: Table of task information if executed as a background process.

Delete an installed application backup

HTTP GET or POST:

/url/to/installatron?api=json&cmd=delete

Required arguments:

  • id: The ID of the installed application backup to be deleted, a list of installed application backup ID's separated by a plus (+), or an asterisk can be specified to match all installed application backups on the server.

Optional arguments:

  • user: If authenticated as a reseller, admin, or super-user, this argument must be set to the owner of the installed application backup.
  • background: When defined, the request will exit immediately and the task will be transferred to a background process. Use the tasks API to query the status of the background task.

Return value:

  • result: true on success, or false on failure.
  • message: Success or failure message.
  • data: Further details regarding the success or failure.
  • task: Table of task information if executed as a background process.

List currently executing and recently completed tasks

HTTP GET or POST:

/url/to/installatron?api=json&cmd=tasks

Optional arguments:

  • user: If authenticated as a reseller, admin, or super-user, this argument must be set to the owner of the installed application backup.

Return value:

  • result: true on success, or false on failure.
  • message: Success or failure message.
  • data: Table of currently executing and recently completed tasks.

© 2004 - 2013 Installatron LLC. All rights reserved.