v52

latestOpenAPI 3.0.1AGPL-3.0raw.githubusercontent.com2026-08-01255473862.7 KB
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/features

Request body

descriptionstring
group_idstring

GroupID is the id of the group to add the feature to

lookup_keystring
metadataTypesMetadata
meter_idstring
namestring required
type'metered' | 'boolean' | 'static' | 'config' required
unit_pluralstring
unit_singularstring

Example request

{
  "meter": {
    "event_name": "api_request",
    "name": "API Usage Meter"
  }
}

Response

Created

created_atstring date-time
created_bystring
descriptionstring
environment_idstring
group_idstring
idstring
lookup_keystring
metadataTypesMetadata
meter_idstring
namestring
status'published' | 'deleted' | 'archived'
tenant_idstring
type'metered' | 'boolean' | 'static' | 'config'
unit_pluralstring
unit_singularstring
updated_atstring date-time
updated_bystring

Example response

{
  "meter": {
    "created_at": "2024-03-20T15:04:05Z",
    "event_name": "api_request",
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "name": "API Usage Meter",
    "status": "published",
    "tenant_id": "tenant123",
    "updated_at": "2024-03-20T15:04:05Z"
  }
}