Example
A developer tool offers a free tier with 100 API requests per month and 1 workspace. When a user exceeds the limit, they’re prompted to upgrade.
Setting up
- CLI
- Dashboard
Create a plan with no Push changes with
price and set autoEnable: true:autumn.config.ts
atmn push.How it works
WhenautoEnable is set, every new customer created via the API or SDK is automatically assigned this plan. This flag can only be set if there are no prices on the plan. Since there are no prices, no payment is required.
If a customer cancels their paid plan and you have an auto-enabled free plan in the same group, the free plan will be re-activated automatically.
Gating features
Use the check endpoint to gate access based on the free plan’s limits:allowed is false, the customer has exhausted their free tier balance. This is a good moment to prompt them to upgrade.