Skip to main content
POST
Create a feature

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
Example:

"Analytics Export"

featureKey
string
required
Example:

"analytics_export"

featureType
enum<string>
default:boolean
Available options:
boolean,
event,
trait
Example:

"boolean"

eventKey
string | null
Example:

"export_generated"

icon
string | null
Example:

"bar-chart-2"

description
string | null
Example:

"Ability to export reporting data to CSV and PDF"

Response

Feature created successfully

id
string
Example:

"cflag_01h9zabc123"

name
string
Example:

"Analytics Export"

featureKey
string
Example:

"analytics_export"

featureType
enum<string>
Available options:
boolean,
event,
trait
Example:

"boolean"

eventKey
string | null
Example:

"export_generated"

icon
string | null
Example:

"bar-chart-2"

description
string | null
Example:

"Ability to export reporting data to CSV and PDF"

linkedPlans
object[]
createdAt
string<date-time>
Last modified on September 19, 2026