Features
Create Feature
Use when defining a new feature or capability to gate or meter (e.g. feature flags or usage-based limits). Ideal for boolean or usage features.
POST
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/flexprice/flexprice/llms.txt
Use this file to discover all available pages before exploring further.
Request Body
Human-readable name for the feature (e.g., “API Access”, “Advanced Analytics”)
Unique identifier for API lookups (e.g., “api_access”, “advanced_analytics”)Must be unique within the environment. Used for programmatic access.
Type of featureValues:
BOOLEAN: Simple on/off feature flagMETERED: Usage-based feature with consumption trackingSTATIC: Feature with a fixed configuration value
Detailed description of what this feature provides
ID of an existing meter to use for METERED featuresEither
meter_id or meter must be provided for METERED features.Meter configuration for METERED features (alternative to meter_id)
Singular unit name (e.g., “API call”, “GB”)Both
unit_singular and unit_plural must be provided together.Plural unit name (e.g., “API calls”, “GBs”)Both
unit_singular and unit_plural must be provided together.Alert configuration for usage thresholds
Custom metadata as key-value pairs
Response
Unique identifier for the feature
Name of the feature
Lookup key for programmatic access
Feature type (BOOLEAN, METERED, or STATIC)
Feature description
ID of the associated meter (for METERED features)
Full meter object (if expanded)
Singular unit name
Plural unit name
Alert configuration
Custom metadata
Timestamp when feature was created
Timestamp when feature was last updated
Feature Types Explained
BOOLEAN
Simple on/off feature flags. Used for access control without usage tracking.Examples:
- Premium support
- Advanced analytics
- Custom branding
METERED
Usage-based features that track consumption. Requires a meter for tracking.Examples:
- API calls
- Storage (GB)
- Monthly active users
STATIC
Features with fixed configuration values (e.g., “5 team members”, “10GB storage”).Examples:
- User seats
- Storage limits
- Project count
Creating Features with Meters
For METERED features, you have two options:Option 1: Use Existing Meter
Option 1: Use Existing Meter
Reference a meter you’ve already created:
Option 2: Create Meter Inline
Option 2: Create Meter Inline
Define the meter configuration in the same request:FlexPrice will create the meter automatically.
After Creating a Feature
Once you’ve created a feature, you can:- Add to plans: Include the feature in your plan entitlements
- Check access: Use the Check Access endpoint to gate features
- Track usage: Send events to meter usage for METERED features
- Set limits: Configure usage limits via entitlements