Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.priceos.com/llms.txt

Use this file to discover all available pages before exploring further.

You can create two types of features in PriceOS:
You can create features on the features page, product details page, or with the create feature API.

Boolean features

Boolean features are on/off access to a feature (e.g. Priority support, Advanced analytics, API access, etc) To create one:
  1. Go to Features
  2. Click the New Feature button
  3. Add a feature name and key
  4. Select Boolean as the feature type
  5. Click the Create Feature button

Limit features

Limit features are a numeric cap (e.g. Credits, Team Seats, API requests, etc.). You can optionally use PriceOS to track usage for your limit features. To create one:
  1. Go to Features
  2. Click the New Feature button
  3. Add a feature name and key
  4. Select Limit as the feature type
  5. Click the Create Feature button

Create features with the API

Use the API when you want to create features from your own provisioning flow or internal tools.
import { PriceOS } from "priceos";

const priceos = new PriceOS(process.env.PRICEOS_API_KEY!);

await priceos.features.create({
  name: "API Calls",
  featureKey: "api_calls",
  type: "limit",
  tracksUsage: true,
  usageResetInterval: "month",
  usageResetAnchor: "calendar",
});
You can also update, archive, or delete features by feature key.