According to the API specification, a trial represents a user's trial period for a product. Trials are managed through specific endpoints and can be associated with product plans.
Based on the API specification's Trial schema:
id
- Unique identifier- Trial period details
- Associated plan and user information
GET /products/{product_id}/trials.json
Retrieves a list of trials associated with a product.
product_id
(path) - The ID of the product
POST /products/{product_id}/installs/{install_id}/plans/{plan_id}/trials.json
Initiates a trial for a specific plan and installation.
product_id
(path) - The ID of the productinstall_id
(path) - The ID of the installationplan_id
(path) - The ID of the plan
The API provides functionality to:
- Start new trials
- Associate trials with specific plans
- Link trials to installations
Trials can be:
- Listed and monitored
- Associated with specific installations
- Tracked for conversion
Trial-related endpoints may return the following error responses:
400
- Bad Request401
- Unauthorized402
- Payment Required404
- Trial Not Found
curl -X GET "https://api.freemius.com/v1/products/{product_id}/trials.json" \
-H "Authorization: Bearer YOUR_API_KEY"
curl -X POST "https://api.freemius.com/v1/products/{product_id}/installs/{install_id}/plans/{plan_id}/trials.json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"
After understanding trials, you can:
- Learn about Webhooks
- Explore Advanced Topics
- Review Core Concepts