Skip to main content

List all trials

GET 

https://api.freemius.com/v1/products/{product_id}/trials.json

Auth:Bearer TokenSCOPE: PRODUCT

Product-scoped API tokens allow you to operate on the product itself. This token usually allows read-only access to the product configuration and write access to several operations on subscriptions, customers, payments, and more. For most SaaS or app integrations, this is the token you will need.

  1. Go to the Freemius Developer Dashboard.
  2. Open the Settings page of the relevant product.
  3. Click the API & Keys tab.
  4. Copy the API Bearer Authorization Token from the UI.

List the trial collection associated with the product.

To support trials, configure your product to offer trial and then users can use the Freemius Checkout to start a trial.

You will need to pass trial=paid or trial=free to the Checkout's paramters to start a trial.

Request

Path Parameters

    product_id integer<int64>required

    The ID of the product.

    Possible values: >= 1

    Example: 1234

Query Parameters

    fields string

    Comma separated list of fields to return in the response. If not specified, all fields are returned.

    Example: id,name,slug
    offset integer
    Default value: 0

    The number of records to skip before starting to return records. Default is 0.

    Possible values: >= 0

    Example: 10
    count integer
    Default value: 25

    The number of records to return.

    Possible values: >= 1 and <= 50

    Example: 10
    from string<date-time>

    The start of the date range in YYYY-MM-DD HH:MM:SS format

    Example: 2025-08-01 00:00:00
    to string<date-time>

    The end of the date range in YYYY-MM-DD HH:MM:SS format

    Example: 2025-08-01 00:00:00

Responses

Trial collection.

Schema
trials object[]
  • Array [
  • idstring<int64>

    The unique identifier of the entity.

    Possible values: >= 1

    Example: 123456
    createdstring<date-time>

    The date and time the entity was created, under UTC timezone.

    Example: 2025-01-01 00:00:00
    updatedstring<date-time>nullable

    The date and time the entity was updated, under UTC timezone. If null then the entity was never updated since its creation.

    Example: 2025-01-01 00:00:00
    plugin_idstring<int64>

    The ID of the product the entity belongs to.

    Possible values: >= 1

    Example: 123456
    user_idstring<int64>

    The ID of the user the entity belongs to.

    Possible values: >= 1

    Example: 123456
    payment_idstring<int64>nullable

    The ID of the payment associated to the entity.

    Possible values: >= 1

    Example: 123456
    subscription_idstring<int64>nullable

    The ID of the subscription associated with the entity.

    Possible values: >= 1

    Example: 123456
    license_idstring<int64>nullable

    The ID of the license associated with the entity.

    Possible values: >= 1

    Example: 123456
    trial_ends_atstring<date-time>

    The date and time the trial ends, under UTC timezone.

    Example: 2025-01-01 00:00:00
    with_payment_methodboolean

    Whether the trial was created with a payment method. Freemius supports both free and paid trials.

    canceled_atstring<date-time>nullable

    The date and time the trial was cancelled, under UTC timezone. If null the trial has not been cancelled.

    Example: 2025-01-01 00:00:00
    converted_atstring<date-time>nullable

    The date and time the trial was converted to a paid subscription or one-time purchase, under UTC timezone. If null the trial has not been converted.

    Example: 2025-01-01 00:00:00
    environmentnumber

    The environment the entity belongs to. 0 means it belongs to the production environment, 1 means it belongs to the sandbox environment.

    Possible values: [1, 0]

    Example: 0
  • ]
  • We use essential cookies to enable our site to function. With your consent, we also use analytics and advertising cookies to understand how visitors interact with our site and to improve our services.
    Learn More