Documentation Index
Fetch the complete documentation index at: https://mintlify.com/workos/workos-node/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Feature Flags API enables you to control feature rollouts, manage feature targeting, and toggle features on or off for your users and organizations.Methods
listFeatureFlags
Retrieves a paginated list of all feature flags.Optional pagination and filtering parameters
An auto-paginatable collection of feature flags
Example
getFeatureFlag
Retrieves a specific feature flag by its slug.The unique slug identifier for the feature flag
The feature flag object
Example
enableFeatureFlag
Enables a feature flag globally.The unique slug identifier for the feature flag
The updated feature flag object with
enabled set to trueExample
disableFeatureFlag
Disables a feature flag globally.The unique slug identifier for the feature flag
The updated feature flag object with
enabled set to falseExample
addFlagTarget
Adds a specific target (user or organization) to a feature flag, enabling the feature for that target.Options for adding a flag target
Example
removeFlagTarget
Removes a specific target from a feature flag.Options for removing a flag target
Example
Use Cases
Gradual Rollouts
Roll out new features gradually to a subset of users before a full release
A/B Testing
Test different features or variations with specific user segments
Kill Switches
Quickly disable problematic features without deploying new code
Beta Programs
Grant early access to features for beta testers and early adopters