Beta
API Monetization is currently in beta. The APIs and features documented here are stable, but you should evaluate them in a non-production environment first. Monetization is free to use during the beta period. To use monetization in production, contact us. Production pricing has not yet been announced.
Features describe what your API offers to customers. They represent the capabilities in your API product - access to specific endpoints, usage allowances, premium functionality, or any other aspect you want to track or gate.
Metered vs Static Features
Features come in two types:
- Metered features are linked to a meter and track consumption. Use these for usage-based capabilities like API calls, tokens, or data transfer.
- Static features have no meter attached. Use these for boolean capabilities like "access to premium endpoints" or "priority support".
Feature Properties
| Property | Required | Description |
|---|---|---|
key | Yes | Unique identifier (lowercase alphanumeric and underscores, 1-64 chars) |
name | Yes | Human-readable display name |
meterSlug | No | Links this feature to a meter for usage tracking |
metadata | No | Custom key-value pairs for your own use |
Features cannot be updated after creation - they can only be archived. Plan your feature structure carefully before creating them.
Creating a Feature
Create a metered feature linked to an API requests meter:
Code
The response includes the created feature:
Code
Creating a Static Feature
For features without usage tracking, omit the meterSlug:
Code
API Reference
For complete API operations (list, get, archive), see the Features API Reference.