provider feature_flags GET /api/projects/{project_id}/feature_flags/evaluation_reasons/
@utdk/posthog /api/projects/{project_id}/feature_flags/evaluation_reasons/
feature_flags_evaluation_reasons_retrieve
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.
distinct_id query required
User distinct ID
string
groups query
Groups for feature flag evaluation (JSON object string)
string
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

Try it

Authentication
Configure credentials for PostHog API
featureFlagsEvaluationReasonsRetrieve
GET/api/projects/{project_id}/feature_flags/evaluation_reasons/
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.

Parameters

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

required

User distinct ID

Groups for feature flag evaluation (JSON object string)

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.featureFlagsEvaluationReasonsRetrieve({
  "groups": "{}"
})