Skip to main content
Creates a new feature in the specified project. Each project can have a maximum of 50 features.

Endpoint

Authentication

Authorization
string
required
Bearer token with your API key. Requires read_write permission.

Path Parameters

slug
string
required
The project’s URL-friendly slug identifier.

Body Parameters

name
string
required
Feature display name.
description
string
Description of the feature.
basePrice
number
required
Base price for this feature. Must be >= 0.
isCountable
boolean
Whether this feature tracks usage or has limits.
featureType
string
Type of feature. One of:
  • "Standart" — simple included/not-included feature
  • "Limits" — feature with a usage limit
  • "Usage Based" — metered usage feature
usageCount
number
Default usage count or limit value. Relevant for "Limits" and "Usage Based" types.
condition
string
Condition label displayed with the count (e.g. "Up to", "Unlimited").
countPrice
number
Price per unit of usage. Relevant for "Usage Based" type.
eventAggregationMethod
string
How usage events are aggregated (e.g. "count", "sum").

Response

Returns the created feature object with status 201 Created.

Example — Standard Feature

Example — Usage-Based Feature

Errors