Overview
Features are the capabilities or resources in your application that you want to gate, meter, or monetize. Autumn provides a powerful feature system that combines feature flags, usage tracking, and access control.Feature Structure
Feature Types
Autumn supports three types of features:1. Boolean Features
Simple on/off feature flags:2. Metered Features
Countable resources with usage limits:- Seats (team members currently in the account)
- Storage (currently used disk space)
- Active connections
- Running instances
Continuous usage features can have prorated pricing - charges adjust based on how long the resource is used during a billing period.
3. Credit Systems
A shared credit pool that multiple features can draw from:Credit systems are perfect for AI/ML platforms where different operations have different costs, but you want to offer a single credit balance to customers.
Entitlements
Entitlements connect features to products and define the allowance:Entitlement Examples
Boolean entitlement - Feature access flag:Checking Feature Access
The/check endpoint tells you if a customer can use a feature:
allowed: false, the response includes a reason:
Tracking Usage
Record usage events with the/track endpoint:
Usage Reset Intervals
Metered features reset based on their entitlement’s interval:
Custom intervals using
interval_count:
Rollover and Carry Forward
Allow customers to keep unused allowance:- Month 1: Allowance = 10,000, Used = 6,000, Remaining = 4,000
- Month 2: Allowance = 10,000 + 4,000 (capped at 5,000) = 15,000
Feature Display
Thedisplay field controls how usage is shown to customers:
Feature Validation
Feature IDs must match this pattern:Feature IDs can only contain alphanumeric characters, hyphens, and underscores.
Event Names
Alias feature IDs with alternative event names:Next Steps
- Learn about Pricing Models to monetize features
- Explore Products and Plans to bundle features
- Read the API Reference for detailed
/checkand/trackusage