Installations in the Freemius API represent instances of a product installed on a site. This documentation is based on the API specification's Install schema and related endpoints.
According to the API specification, an installation has the following key properties:
id
- Unique identifiersecret_key
- Authorization key for the installationuser_id
- Associated user identifierlicense_id
- Associated license identifier (if applicable)
version
- Current version of the installationlast_served_update_version
- Last product version update used on the site
GET /products/{product_id}/installs/{install_id}.json
Retrieves detailed information about a specific installation.
product_id
(path) - The ID of the productinstall_id
(path) - The ID of the installation
PUT /products/{product_id}/installs/{install_id}.json
Updates a product installation's details.
GET /products/{product_id}/installs.json
Retrieves a list of installations for a product.
PUT /products/{product_id}/installs/{install_id}/clones/{clone_id}.json
Resolves clone installations (e.g., staging or local environments).
GET /products/{product_id}/installs/{install_id}/updates.json
Retrieves available updates for an installation.
GET /products/{product_id}/installs/{install_id}/updates/latest.json
Retrieves the latest available update.
GET /products/{product_id}/installs/{install_id}/plans.json
Lists available plans for an installation.
POST /products/{product_id}/installs/{install_id}/plans/{plan_id}/trials.json
Initiates a trial for a specific plan.
The API provides specific functionality for managing installation clones through the clone resolution endpoint.
Installations can track and manage updates through dedicated update endpoints.
Installation endpoints may return the following error responses:
400
- Bad Request401
- Unauthorized402
- Payment Required404
- Installation Not Found
curl -X GET "https://api.freemius.com/v1/products/{product_id}/installs/{install_id}.json" \
-H "Authorization: Bearer YOUR_API_KEY"
curl -X PUT "https://api.freemius.com/v1/products/{product_id}/installs/{install_id}.json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
curl -X GET "https://api.freemius.com/v1/products/{product_id}/installs/{install_id}/updates/latest.json" \
-H "Authorization: Bearer YOUR_API_KEY"
After understanding installations, you can: