provider feature_flags GET
/api/projects/{project_id}/feature_flags/ @utdk/posthog
/api/projects/{project_id}/feature_flags/ feature_flags_list
Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
If you're looking to use feature flags on your application, you can either use our JavaScript Library or our dedicated endpoint to check if feature flags are enabled for a given user.
- active query
- enum: STALE, false, true
- archived query
- Filter by archived state. When omitted, archived flags are excluded.
- enum: false, true
- created_by_id query
- Filter by the user(s) who created the feature flag. Accepts a single user ID, or a JSON-encoded / comma-separated list of user IDs to match any of them.
- string
- evaluation_runtime query
- Filter feature flags by their evaluation runtime.
- enum: all, client, server
- excluded_properties query
- JSON-encoded list of feature flag keys to exclude from the results.
- string
- excluded_tags query
- JSON-encoded list of tag names to exclude. Flags carrying any of these tags are filtered out.
- string
- has_evaluation_contexts query
- Filter feature flags by presence of evaluation contexts. 'true' returns only flags with at least one evaluation context, 'false' returns only flags without.
- enum: false, true
- limit query
- Number of results to return per page.
- integer
- offset query
- The initial index from which to return the results.
- integer
- project_id path required
- Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
- string
- search query
- Search by feature flag key or name. Case insensitive.
- string
- tags query
- JSON-encoded list of tag names to filter feature flags by.
- string
- type query
- enum: boolean, experiment, multivariant, remote_config
Try it
Authentication
Configure credentials for PostHog API
Code snippet
Updates live as you fill in the form above.
TypeScript
import posthog from '@utdk/posthog';
await posthog.featureFlagsList()