PostHog · Capability

PostHog API — feature_flags

PostHog API — feature_flags. 46 operations. Lead operation: feature_flags. Self-contained Naftiko capability covering one Posthog business surface.

Run with Naftiko Posthogfeature_flags

What You Can Do

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
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.
/v1/api/projects/{project-id}/feature-flags/activity
GET
Featureflagsallactivityretrieve — 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/activity
POST
Featureflagsbulkdeletecreate — Bulk delete feature flags by filter criteria or explicit IDs.
/v1/api/projects/{project-id}/feature-flags/bulk-delete
POST
Featureflagsbulkdeletecreate — Bulk delete feature flags by filter criteria or explicit IDs.
/v1/api/projects/{project-id}/feature-flags/bulk-delete
POST
Featureflagsbulkkeyscreate — Get feature flag keys by IDs.
/v1/api/projects/{project-id}/feature-flags/bulk-keys
POST
Featureflagsbulkkeyscreate — Get feature flag keys by IDs.
/v1/api/projects/{project-id}/feature-flags/bulk-keys
POST
Featureflagsbulkupdatetagscreate — Bulk update tags on multiple objects.
/v1/api/projects/{project-id}/feature-flags/bulk-update-tags
POST
Featureflagsbulkupdatetagscreate — Bulk update tags on multiple objects.
/v1/api/projects/{project-id}/feature-flags/bulk-update-tags
GET
Featureflagsevaluationreasonsretrieve — 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/evaluation-reasons
GET
Featureflagsevaluationreasonsretrieve — 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/evaluation-reasons
GET
Featureflagslocalevaluationretrieve — 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/local-evaluation
GET
Featureflagslocalevaluationretrieve — 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/local-evaluation
GET
Featureflagsmatchingidsretrieve — Get IDs of all feature flags matching the current filters.
/v1/api/projects/{project-id}/feature-flags/matching-ids
GET
Featureflagsmatchingidsretrieve — Get IDs of all feature flags matching the current filters.
/v1/api/projects/{project-id}/feature-flags/matching-ids
GET
Featureflagsmyflagsretrieve — 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/my-flags
GET
Featureflagsmyflagsretrieve — 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/my-flags
POST
Featureflagsuserblastradiuscreate — 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/user-blast-radius
POST
Featureflagsuserblastradiuscreate — 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/user-blast-radius
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}
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.
/v1/api/projects/{project-id}/feature-flags/{id}/activity
GET
Featureflagsactivityretrieve — 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}/activity
POST
Featureflagscreatestaticcohortforflagcreate — 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}/create-static-cohort-for-flag
POST
Featureflagscreatestaticcohortforflagcreate — 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}/create-static-cohort-for-flag
POST
Featureflagsdashboardcreate — 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}/dashboard
POST
Featureflagsdashboardcreate — 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}/dashboard
GET
Featureflagsdependentflagslist — Get other active flags that depend on this flag.
/v1/api/projects/{project-id}/feature-flags/{id}/dependent-flags
GET
Featureflagsdependentflagslist — Get other active flags that depend on this flag.
/v1/api/projects/{project-id}/feature-flags/{id}/dependent-flags
POST
Featureflagsenrichusagedashboardcreate — 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}/enrich-usage-dashboard
POST
Featureflagsenrichusagedashboardcreate — 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}/enrich-usage-dashboard
GET
Featureflagsremoteconfigretrieve — 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}/remote-config
GET
Featureflagsremoteconfigretrieve — 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}/remote-config
GET
Featureflagsstatusretrieve — 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}/status
GET
Featureflagsstatusretrieve — 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}/status
GET
Featureflagsversionsretrieve — 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}/versions/{version-number}
GET
Featureflagsversionsretrieve — 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}/versions/{version-number}

MCP Tools

create-read-update-and-delete

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

read-only idempotent
create-read-update-and-delete-2

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

read-only idempotent
create-read-update-and-delete-3

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

create-read-update-and-delete-4

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

create-read-update-and-delete-5

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

read-only idempotent
create-read-update-and-delete-6

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

read-only idempotent
bulk-delete-feature-flags-filter

Bulk delete feature flags by filter criteria or explicit IDs.

bulk-delete-feature-flags-filter-2

Bulk delete feature flags by filter criteria or explicit IDs.

get-feature-flag-keys-ids

Get feature flag keys by IDs.

read-only
get-feature-flag-keys-ids-2

Get feature flag keys by IDs.

read-only
bulk-update-tags-multiple-objects

Bulk update tags on multiple objects.

bulk-update-tags-multiple-objects-2

Bulk update tags on multiple objects.

create-read-update-and-delete-7

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

read-only idempotent
create-read-update-and-delete-8

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

read-only idempotent
create-read-update-and-delete-9

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

read-only idempotent
create-read-update-and-delete-10

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

read-only idempotent
get-ids-all-feature-flags

Get IDs of all feature flags matching the current filters.

read-only idempotent
get-ids-all-feature-flags-2

Get IDs of all feature flags matching the current filters.

read-only idempotent
create-read-update-and-delete-11

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

read-only idempotent
create-read-update-and-delete-12

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

read-only idempotent
create-read-update-and-delete-13

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

create-read-update-and-delete-14

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

create-read-update-and-delete-15

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

read-only idempotent
create-read-update-and-delete-16

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

read-only idempotent
create-read-update-and-delete-17

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

idempotent
create-read-update-and-delete-18

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

idempotent
create-read-update-and-delete-19

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

idempotent
create-read-update-and-delete-20

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

idempotent
hard-delete-this-model-is

Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true

idempotent
hard-delete-this-model-is-2

Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true

idempotent
create-read-update-and-delete-21

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

read-only idempotent
create-read-update-and-delete-22

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

read-only idempotent
create-read-update-and-delete-23

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

create-read-update-and-delete-24

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

create-read-update-and-delete-25

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

create-read-update-and-delete-26

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

get-other-active-flags-that

Get other active flags that depend on this flag.

read-only idempotent
get-other-active-flags-that-2

Get other active flags that depend on this flag.

read-only idempotent
create-read-update-and-delete-27

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

create-read-update-and-delete-28

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

create-read-update-and-delete-29

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

read-only idempotent
create-read-update-and-delete-30

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

read-only idempotent
create-read-update-and-delete-31

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

read-only idempotent
create-read-update-and-delete-32

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

read-only idempotent
create-read-update-and-delete-33

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

read-only idempotent
create-read-update-and-delete-34

Create, read, update and delete feature flags. [See docs](https://posthog.com/docs/feature-flags) for more information on feature flags.

read-only idempotent

Capability Spec

posthog-feature-flags.yaml Raw ↑
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