Welcome to the Freemius API Documentation!
You can use our API to access Freemius API endpoints, which can get information on various aspects of Freemius.
If you're using Freemius for a WordPress product, please check out our official SDK.
Freemius API supports Bearer Token authentication for product-specific operations.
To retrieve your API token:
Use this token by including it in the Authorization
header of your API requests:
Authorization: Bearer {api_token}
Bearer tokens are scoped to a specific product. This means they can only be used with endpoints under the /products/{product_id}/
namespace. For example:
GET /products/12345/users.json
Authorization Bearer {api_token}
Requests to endpoints outside the product scope will result in an authorization error.
The Freemius API is organized around different scopes, based on the top-level entity of the operation:
For example, let's say you want to list all payments of a product. This operation can be done in several scopes:
/products/{product_id}/payments.json
./developers/{developer_id}/products/{product_id}/payments.json
.On the other hand, if a user would want to list their payment, then endpoint will be scoped to the user:
/users/{user_id}/payments.json
.Some operations can be done from a particular scope only. For example only a developer can update a plan of a product or create a new plan. So the following operations will work:
/developers/{developer_id}/products/{product_id}/plans/{plan_id}.json
/developers/{developer_id}/products/{product_id}/plans.json
If you try to perform the same operation on a product scope, it will return an error. The scopes provides a way to control access and permissions for different entities in the Freemius ecosystem.
Currently, Bearer Token authentication is supported for product scope only. If you need access to endpoints in others scopes, use the secret-key based authentication with the following SDKs:
For most use cases, managing your products, licenses, and customers through the Developer Dashboard or Customer Portal provides all the necessary capabilities.
https://api.freemius.com/v1/
http://api.freemius-local.com:8080/v1/
https://docs.freemius.com/_mock/api/
https://api.freemius.com/v1/products/{product_id}/installs/{install_id}/addons/{addon_id}/plans/{plan_id}/features.json
http://api.freemius-local.com:8080/v1/products/{product_id}/installs/{install_id}/addons/{addon_id}/plans/{plan_id}/features.json
https://docs.freemius.com/_mock/api/products/{product_id}/installs/{install_id}/addons/{addon_id}/plans/{plan_id}/features.json
curl -i -X GET \
'https://api.freemius.com/v1/products/1234/installs/1234/addons/1234/plans/1234/features.json?count=10&fields=id%2Cname%2Cslug&offset=10' \
-H 'Authorization: Bearer <YOUR_AccessToken_HERE>'
{ "features": [ { … } ] }
The resolution or purpose of the clone site.
https://api.freemius.com/v1/products/{product_id}/installs/{install_id}/clones/{clone_id}.json
http://api.freemius-local.com:8080/v1/products/{product_id}/installs/{install_id}/clones/{clone_id}.json
https://docs.freemius.com/_mock/api/products/{product_id}/installs/{install_id}/clones/{clone_id}.json
curl -i -X PUT \
'https://api.freemius.com/v1/products/1234/installs/1234/clones/1234.json?fields=id%2Cname%2Cslug' \
-H 'Authorization: Bearer <YOUR_AccessToken_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"resolution": "temporary_duplicate"
}'
Install clone created.
The date and time the entity was created, under UTC timezone.
The date and time the entity was updated, under UTC timezone. If null
then the entity was never updated since its creation.
The ID of the installation or site the entity is associated with.
The install's URL (install.url) when the clone was identified.
The URL of the site where the clone was identified.
{ "id": "123456", "created": "2025-01-01 00:00:00", "updated": "2025-01-01 00:00:00", "install_id": "123456", "new_install_id": "1234", "install_url": "https://example.com", "site_url": "https://staging.example.com", "state": "pending", "resolution": "temporary_duplicate" }
Create a clone of an install associated with the product.
Use this endpoint if you want to support migration or temporary or long-term duplicates for staging purposes.
By default the clone will be created in a pending state. For our WP SDK the clone will be created in a safe mode state.
After creating the clone, you will need to resolve the clone by updating its state and resolution. You will need to handle the licensing logic for the new install entity. Our WP SDK handles it automatically for WordPress products (plugins and themes).
https://api.freemius.com/v1/products/{product_id}/installs/{install_id}/clones.json
http://api.freemius-local.com:8080/v1/products/{product_id}/installs/{install_id}/clones.json
https://docs.freemius.com/_mock/api/products/{product_id}/installs/{install_id}/clones.json
curl -i -X POST \
'https://api.freemius.com/v1/products/1234/installs/1234/clones.json?fields=id%2Cname%2Cslug' \
-H 'Authorization: Bearer <YOUR_AccessToken_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"site_url": "https://example.com"
}'
Install clone created.
The date and time the entity was created, under UTC timezone.
The date and time the entity was updated, under UTC timezone. If null
then the entity was never updated since its creation.
The ID of the installation or site the entity is associated with.
The install's URL (install.url) when the clone was identified.
The URL of the site where the clone was identified.
{ "id": "123456", "created": "2025-01-01 00:00:00", "updated": "2025-01-01 00:00:00", "install_id": "123456", "new_install_id": "1234", "install_url": "https://example.com", "site_url": "https://staging.example.com", "state": "pending", "resolution": "temporary_duplicate" }