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/
Retrieve a specific event by its ID. For instructions on creating webhook listeners, see the documentation.
https://api.freemius.com/v1/products/{product_id}/events/{event_id}.json
http://api.freemius-local.com:8080/v1/products/{product_id}/events/{event_id}.json
https://docs.freemius.com/_mock/api/products/{product_id}/events/{event_id}.json
curl -i -X GET \
'https://api.freemius.com/v1/products/1234/events/1234.json?fields=id%2Cname%2Cslug' \
-H 'Authorization: Bearer <YOUR_AccessToken_HERE>'
The retrieved event.
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 type of event. See our documented list of the available event types.
The ID of the product the entity belongs to. Null means it has not been associated with a product yet.
The ID of the user the entity belongs to. If NULL then still not associated to any user.
The ID of the installation or site the entity is associated with, a null
value means it has not been associated with an installation yet.
The details of the triggered event. This can be a string
showing ID of the associated entity, an object
with additional information of the event, or array of objects.
The type of trigger for the event.
The time the event was processed. If it is null
, the event is pending.
A map of related objects keyed by their type or ID, such as Payment, User, Install, or License.
{ "id": "123456", "created": "2025-01-01 00:00:00", "updated": "2025-01-01 00:00:00", "type": "license.activated", "developer_id": "1234", "plugin_id": "123456", "user_id": "123456", "install_id": "123456", "data": null, "event_trigger": "system", "process_time": "2025-01-01 12:00:00", "objects": { "user": { … }, "install": { … }, "license": { … }, "payment": { … } } }
Retrieve a list of events for a specific product. Supports filtering by type, state, and pagination. See the documentation for instructions on creating a webhook to listen for events.
Filter events by type string or event name, such as license.created
. See the documentation for a list of available event types.
Filter events by state: 'pending', 'processed', 'error', or 'canceled'.
The number of records to skip before starting to return records. Default is 0.
https://api.freemius.com/v1/products/{product_id}/events.json
http://api.freemius-local.com:8080/v1/products/{product_id}/events.json
https://docs.freemius.com/_mock/api/products/{product_id}/events.json
curl -i -X GET \
'https://api.freemius.com/v1/products/1234/events.json?count=10&fields=id%2Cname%2Cslug&offset=10&state=processed&type=string' \
-H 'Authorization: Bearer <YOUR_AccessToken_HERE>'
{ "events": [ { … } ] }