Featureflagslist — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
/v1/api/projects/{project-id}/feature-flags
GET
Featureflagslist — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
/v1/api/projects/{project-id}/feature-flags
POST
Featureflagscreate — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
/v1/api/projects/{project-id}/feature-flags
POST
Featureflagscreate — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
/v1/api/projects/{project-id}/feature-flags
GET
Featureflagsallactivityretrieve — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagsallactivityretrieve — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagsevaluationreasonsretrieve — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagsevaluationreasonsretrieve — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagslocalevaluationretrieve — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagslocalevaluationretrieve — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagsmyflagsretrieve — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagsmyflagsretrieve — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagsuserblastradiuscreate — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagsuserblastradiuscreate — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagsretrieve — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
/v1/api/projects/{project-id}/feature-flags/{id}
GET
Featureflagsretrieve — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
/v1/api/projects/{project-id}/feature-flags/{id}
PUT
Featureflagsupdate — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
/v1/api/projects/{project-id}/feature-flags/{id}
PUT
Featureflagsupdate — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
/v1/api/projects/{project-id}/feature-flags/{id}
PATCH
Featureflagspartialupdate — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
/v1/api/projects/{project-id}/feature-flags/{id}
PATCH
Featureflagspartialupdate — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
/v1/api/projects/{project-id}/feature-flags/{id}
DELETE
Featureflagsdestroy — Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
/v1/api/projects/{project-id}/feature-flags/{id}
DELETE
Featureflagsdestroy — Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
/v1/api/projects/{project-id}/feature-flags/{id}
GET
Featureflagsactivityretrieve — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagsactivityretrieve — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagscreatestaticcohortforflagcreate — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagscreatestaticcohortforflagcreate — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagsdashboardcreate — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagsdashboardcreate — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagsenrichusagedashboardcreate — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagsenrichusagedashboardcreate — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagsremoteconfigretrieve — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagsremoteconfigretrieve — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagsstatusretrieve — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagsstatusretrieve — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagsversionsretrieve — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
Featureflagsversionsretrieve — Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.
naftiko: 1.0.0-alpha2
info:
label: PostHog API — feature_flags
description: 'PostHog API — feature_flags. 46 operations. Lead operation: feature_flags. Self-contained Naftiko capability
covering one Posthog business surface.'
tags:
- Posthog
- feature_flags
created: '2026-05-19'
modified: '2026-05-19'
binds:
- namespace: env
keys:
POSTHOG_API_KEY: POSTHOG_API_KEY
capability:
consumes:
- type: http
namespace: posthog-feature-flags
baseUri: ''
description: PostHog API — feature_flags business capability. Self-contained, no shared references.
resources:
- name: api-projects-project_id-feature_flags
path: /api/projects/{project_id}/feature_flags/
operations:
- name: featureflagslist
method: GET
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: active
in: query
type: string
- name: created_by_id
in: query
type: string
description: The User ID which initially created the feature flag.
- name: evaluation_runtime
in: query
type: string
description: Filter feature flags by their evaluation runtime.
- name: excluded_properties
in: query
type: string
description: JSON-encoded list of feature flag keys to exclude from the results.
- name: has_evaluation_contexts
in: query
type: string
description: Filter feature flags by presence of evaluation contexts. 'true' returns only flags with at least one
evaluation context, 'false' returns only flags without.
- name: limit
in: query
type: integer
description: Number of results to return per page.
- name: offset
in: query
type: integer
description: The initial index from which to return the results.
- name: search
in: query
type: string
description: Search by feature flag key or name. Case insensitive.
- name: tags
in: query
type: string
description: JSON-encoded list of tag names to filter feature flags by.
- name: type
in: query
type: string
- name: featureflagslist
method: GET
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: active
in: query
type: string
- name: created_by_id
in: query
type: string
description: The User ID which initially created the feature flag.
- name: evaluation_runtime
in: query
type: string
description: Filter feature flags by their evaluation runtime.
- name: excluded_properties
in: query
type: string
description: JSON-encoded list of feature flag keys to exclude from the results.
- name: has_evaluation_contexts
in: query
type: string
description: Filter feature flags by presence of evaluation contexts. 'true' returns only flags with at least one
evaluation context, 'false' returns only flags without.
- name: limit
in: query
type: integer
description: Number of results to return per page.
- name: offset
in: query
type: integer
description: The initial index from which to return the results.
- name: search
in: query
type: string
description: Search by feature flag key or name. Case insensitive.
- name: tags
in: query
type: string
description: JSON-encoded list of tag names to filter feature flags by.
- name: type
in: query
type: string
- name: featureflagscreate
method: POST
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: featureflagscreate
method: POST
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: api-projects-project_id-feature_flags-activity
path: /api/projects/{project_id}/feature_flags/activity/
operations:
- name: featureflagsallactivityretrieve
method: GET
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: limit
in: query
type: integer
description: Number of items per page
- name: page
in: query
type: integer
description: Page number
- name: featureflagsallactivityretrieve
method: GET
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: limit
in: query
type: integer
description: Number of items per page
- name: page
in: query
type: integer
description: Page number
- name: api-projects-project_id-feature_flags-bulk_delete
path: /api/projects/{project_id}/feature_flags/bulk_delete/
operations:
- name: featureflagsbulkdeletecreate
method: POST
description: Bulk delete feature flags by filter criteria or explicit IDs.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: featureflagsbulkdeletecreate
method: POST
description: Bulk delete feature flags by filter criteria or explicit IDs.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: api-projects-project_id-feature_flags-bulk_keys
path: /api/projects/{project_id}/feature_flags/bulk_keys/
operations:
- name: featureflagsbulkkeyscreate
method: POST
description: Get feature flag keys by IDs.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: featureflagsbulkkeyscreate
method: POST
description: Get feature flag keys by IDs.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: api-projects-project_id-feature_flags-bulk_update_tags
path: /api/projects/{project_id}/feature_flags/bulk_update_tags/
operations:
- name: featureflagsbulkupdatetagscreate
method: POST
description: Bulk update tags on multiple objects.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: featureflagsbulkupdatetagscreate
method: POST
description: Bulk update tags on multiple objects.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: api-projects-project_id-feature_flags-evaluation_reasons
path: /api/projects/{project_id}/feature_flags/evaluation_reasons/
operations:
- name: featureflagsevaluationreasonsretrieve
method: GET
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: distinct_id
in: query
type: string
description: User distinct ID
required: true
- name: groups
in: query
type: string
description: Groups for feature flag evaluation (JSON object string)
- name: featureflagsevaluationreasonsretrieve
method: GET
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: distinct_id
in: query
type: string
description: User distinct ID
required: true
- name: groups
in: query
type: string
description: Groups for feature flag evaluation (JSON object string)
- name: api-projects-project_id-feature_flags-local_evaluation
path: /api/projects/{project_id}/feature_flags/local_evaluation/
operations:
- name: featureflagslocalevaluationretrieve
method: GET
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: send_cohorts
in: query
type: boolean
description: Include cohorts in response
- name: featureflagslocalevaluationretrieve
method: GET
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: send_cohorts
in: query
type: boolean
description: Include cohorts in response
- name: api-projects-project_id-feature_flags-matching_ids
path: /api/projects/{project_id}/feature_flags/matching_ids/
operations:
- name: featureflagsmatchingidsretrieve
method: GET
description: Get IDs of all feature flags matching the current filters.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
- name: featureflagsmatchingidsretrieve
method: GET
description: Get IDs of all feature flags matching the current filters.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
- name: api-projects-project_id-feature_flags-my_flags
path: /api/projects/{project_id}/feature_flags/my_flags/
operations:
- name: featureflagsmyflagsretrieve
method: GET
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: groups
in: query
type: string
description: Groups for feature flag evaluation (JSON object string)
- name: featureflagsmyflagsretrieve
method: GET
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: groups
in: query
type: string
description: Groups for feature flag evaluation (JSON object string)
- name: api-projects-project_id-feature_flags-user_blast_radius
path: /api/projects/{project_id}/feature_flags/user_blast_radius/
operations:
- name: featureflagsuserblastradiuscreate
method: POST
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: featureflagsuserblastradiuscreate
method: POST
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: api-projects-project_id-feature_flags-id
path: /api/projects/{project_id}/feature_flags/{id}/
operations:
- name: featureflagsretrieve
method: GET
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: featureflagsretrieve
method: GET
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: featureflagsupdate
method: PUT
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: featureflagsupdate
method: PUT
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: featureflagspartialupdate
method: PATCH
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: featureflagspartialupdate
method: PATCH
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: false
- name: featureflagsdestroy
method: DELETE
description: Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: featureflagsdestroy
method: DELETE
description: Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: api-projects-project_id-feature_flags-id-activity
path: /api/projects/{project_id}/feature_flags/{id}/activity/
operations:
- name: featureflagsactivityretrieve
method: GET
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: limit
in: query
type: integer
description: Number of items per page
- name: page
in: query
type: integer
description: Page number
- name: featureflagsactivityretrieve
method: GET
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: limit
in: query
type: integer
description: Number of items per page
- name: page
in: query
type: integer
description: Page number
- name: api-projects-project_id-feature_flags-id-create_static_cohort_for_flag
path: /api/projects/{project_id}/feature_flags/{id}/create_static_cohort_for_flag/
operations:
- name: featureflagscreatestaticcohortforflagcreate
method: POST
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: featureflagscreatestaticcohortforflagcreate
method: POST
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: api-projects-project_id-feature_flags-id-dashboard
path: /api/projects/{project_id}/feature_flags/{id}/dashboard/
operations:
- name: featureflagsdashboardcreate
method: POST
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: featureflagsdashboardcreate
method: POST
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: api-projects-project_id-feature_flags-id-dependent_flags
path: /api/projects/{project_id}/feature_flags/{id}/dependent_flags/
operations:
- name: featureflagsdependentflagslist
method: GET
description: Get other active flags that depend on this flag.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: featureflagsdependentflagslist
method: GET
description: Get other active flags that depend on this flag.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: api-projects-project_id-feature_flags-id-enrich_usage_dashboard
path: /api/projects/{project_id}/feature_flags/{id}/enrich_usage_dashboard/
operations:
- name: featureflagsenrichusagedashboardcreate
method: POST
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: featureflagsenrichusagedashboardcreate
method: POST
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: body
in: body
type: object
description: Request body (JSON).
required: true
- name: api-projects-project_id-feature_flags-id-remote_config
path: /api/projects/{project_id}/feature_flags/{id}/remote_config/
operations:
- name: featureflagsremoteconfigretrieve
method: GET
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: featureflagsremoteconfigretrieve
method: GET
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: api-projects-project_id-feature_flags-id-status
path: /api/projects/{project_id}/feature_flags/{id}/status/
operations:
- name: featureflagsstatusretrieve
method: GET
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: featureflagsstatusretrieve
method: GET
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: api-projects-project_id-feature_flags-id-versions-version_number
path: /api/projects/{project_id}/feature_flags/{id}/versions/{version_number}/
operations:
- name: featureflagsversionsretrieve
method: GET
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: version_number
in: path
type: integer
description: The version number to reconstruct.
required: true
- name: featureflagsversionsretrieve
method: GET
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
outputRawFormat: json
outputParameters:
- name: result
type: object
value: $.
inputParameters:
- name: id
in: path
type: integer
description: A unique integer value identifying this feature flag.
required: true
- name: version_number
in: path
type: integer
description: The version number to reconstruct.
required: true
authentication:
type: bearer
token: '{{env.POSTHOG_API_KEY}}'
exposes:
- type: rest
namespace: posthog-feature-flags-rest
port: 8080
description: REST adapter for PostHog API — feature_flags. One Spectral-compliant resource per consumed operation, prefixed
with /v1.
resources:
- path: /v1/api/projects/{project-id}/feature-flags
name: api-projects-project-id-feature-flags
description: REST surface for api-projects-project_id-feature_flags.
operations:
- method: GET
name: featureflagslist
description: Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for
more information on feature flags.
call: posthog-feature-flags.featureflagslist
with:
active: rest.active
created_by_id: rest.created_by_id
evaluation_runtime: rest.evaluation_runtime
excluded_properties: rest.excluded_properties
has_evaluation_contexts: rest.has_evaluation_contexts
limit: rest.limit
offset: rest.offset
search: rest.search
tags: rest.tags
type: rest.type
outputParameters:
- type: object
mapping: $.
- met
# --- truncated at 32 KB (75 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/posthog/refs/heads/main/capabilities/posthog-feature-flags.yaml