PostHog · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for PostHog Feature Flags API

24 actions 24 updates phrasing extends openapi/posthog-feature-flags-api-openapi.yml
Generated by API Evangelist Written by API Evangelist tooling for PostHog's API. It is a proposal applied on top of the contract, not a document PostHog publishes.
View Overlay File View on GitHub Overlay Specification

What the actions change

x-apievangelist-phrasing

Targets 24 · first 16 shown; the file carries all of them

$.info
$.paths['/api/projects/{project_id}/feature_flags/'].get
$.paths['/api/projects/{project_id}/feature_flags/'].post
$.paths['/api/projects/{project_id}/feature_flags/{id}/'].get
$.paths['/api/projects/{project_id}/feature_flags/{id}/'].put
$.paths['/api/projects/{project_id}/feature_flags/{id}/'].delete
$.paths['/api/projects/{project_id}/feature_flags/{id}/'].patch
$.paths['/api/projects/{project_id}/feature_flags/{id}/activity/'].get
$.paths['/api/projects/{project_id}/feature_flags/{id}/create_static_cohort_for_flag/'].post
$.paths['/api/projects/{project_id}/feature_flags/{id}/dashboard/'].post
$.paths['/api/projects/{project_id}/feature_flags/{id}/dependent_flags/'].get
$.paths['/api/projects/{project_id}/feature_flags/{id}/enrich_usage_dashboard/'].post
$.paths['/api/projects/{project_id}/feature_flags/{id}/remote_config/'].get
$.paths['/api/projects/{project_id}/feature_flags/{id}/status/'].get
$.paths['/api/projects/{project_id}/feature_flags/{id}/versions/{version_number}/'].get
$.paths['/api/projects/{project_id}/feature_flags/activity/'].get

OpenAPI Overlay

Raw ↑
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
  title: API Evangelist conversational phrasing for PostHog Feature Flags API
  version: 1.0.0
extends: openapi/posthog-feature-flags-api-openapi.yml
actions:
- target: $.info
  update:
    x-apievangelist-phrasing:
      method: generated
      generated: '2026-11-16'
      generator: build-phrasing.py
      label: Generated by API Evangelist
      operations: 23
- target: $.paths['/api/projects/{project_id}/feature_flags/'].get
  update:
    x-apievangelist-phrasing:
      intent: List feature flags
      effect: read
      questions:
      - Which feature flags are active in my project?
      - Can I list flags that use a particular evaluation runtime?
      instructions:
      - text: List feature flags in project {project_id}.
        slots:
          project_id: path.project_id
      - text: Show active feature flags in project {project_id} tagged {tags}.
        slots:
          project_id: path.project_id
          tags: query.tags
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/feature_flags/'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a feature flag
      effect: write
      questions:
      - How do I create a feature flag that targets specific users?
      - Can I set evaluation contexts when creating a flag?
      instructions:
      - text: Create feature flag {name} with key {key} in project {project_id}.
        slots:
          name: requestBody.name
          key: requestBody.key
          project_id: path.project_id
      - text: Create flag {key} in project {project_id} with filters {filters}.
        slots:
          key: requestBody.key
          project_id: path.project_id
          filters: requestBody.filters
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/feature_flags/{id}/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a feature flag
      effect: read
      questions:
      - What filters and status does a specific feature flag have?
      - Can I look up one flag by its ID?
      instructions:
      - text: Get feature flag {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Show the filters on flag {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/feature_flags/{id}/'].put
  update:
    x-apievangelist-phrasing:
      intent: Replace a feature flag
      effect: write
      questions:
      - How do I overwrite a feature flag's filters and evaluation contexts?
      - Can I change a flag's key and name in one call?
      instructions:
      - text: Replace feature flag {id} in project {project_id} with key {key} and filters {filters}.
        slots:
          id: path.id
          project_id: path.project_id
          key: requestBody.key
          filters: requestBody.filters
      - text: Overwrite flag {id} in project {project_id} with name {name}.
        slots:
          id: path.id
          project_id: path.project_id
          name: requestBody.name
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/feature_flags/{id}/'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a feature flag
      effect: destructive
      questions:
      - How do I delete a feature flag?
      - Is a hard delete of a flag allowed?
      instructions:
      - text: Delete feature flag {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Remove flag {id} from project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/feature_flags/{id}/'].patch
  update:
    x-apievangelist-phrasing:
      intent: Update a feature flag
      effect: write
      questions:
      - Can I deactivate a feature flag without replacing it?
      - How do I add tags to an existing flag?
      instructions:
      - text: Set active to {active} on feature flag {id} in project {project_id}.
        slots:
          active: requestBody.active
          id: path.id
          project_id: path.project_id
      - text: Add tags {tags} to flag {id} in project {project_id}.
        slots:
          tags: requestBody.tags
          id: path.id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/feature_flags/{id}/activity/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a flag's activity log
      effect: read
      questions:
      - Who changed a feature flag and when?
      - Can I page through the activity log for one flag?
      instructions:
      - text: Show the activity log for feature flag {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Get page {page} of flag {id}'s activity in project {project_id}.
        slots:
          page: query.page
          id: path.id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/feature_flags/{id}/create_static_cohort_for_flag/'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a cohort from a flag
      effect: write
      questions:
      - How do I create a static cohort from a flag's filters?
      - Can I build a cohort based on a feature flag?
      instructions:
      - text: Create a static cohort from feature flag {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Build a cohort using the filters of flag {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/feature_flags/{id}/dashboard/'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a dashboard for a feature flag
      effect: write
      questions:
      - How do I create a dashboard for an existing feature flag?
      - Can I set up an analytics dashboard tied to one flag?
      instructions:
      - text: Create the analytics dashboard for flag {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Set up a dashboard for flag {id} with key {key} in project {project_id}.
        slots:
          id: path.id
          key: requestBody.key
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/feature_flags/{id}/dependent_flags/'].get
  update:
    x-apievangelist-phrasing:
      intent: List flags that depend on a flag
      effect: read
      questions:
      - Which other flags depend on a given feature flag?
      - Can I see the dependency chain of a flag?
      instructions:
      - text: List flags that depend on feature flag {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Show the dependent flags of flag {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/feature_flags/{id}/enrich_usage_dashboard/'].post
  update:
    x-apievangelist-phrasing:
      intent: Enrich a flag's usage dashboard
      effect: write
      questions:
      - How do I enrich the usage dashboard of a feature flag?
      - Can I add more metrics to a flag's dashboard?
      instructions:
      - text: Enrich the usage dashboard of feature flag {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Add metrics to flag {id}'s dashboard in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/feature_flags/{id}/remote_config/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a flag's remote config
      effect: read
      questions:
      - What remote configuration does a feature flag use?
      - Can I fetch a flag's remote config by ID?
      instructions:
      - text: Get the remote config of feature flag {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Show remote config for flag {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/feature_flags/{id}/status/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a flag's status
      effect: read
      questions:
      - Is a feature flag active and what is its status?
      - Can I check a flag's status before using it?
      instructions:
      - text: Get the status of feature flag {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Check whether flag {id} in project {project_id} is active.
        slots:
          id: path.id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/feature_flags/{id}/versions/{version_number}/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a flag's version
      effect: read
      questions:
      - What did a feature flag look like in a previous version?
      - Can I retrieve a specific version of a flag?
      instructions:
      - text: Get version {version_number} of feature flag {id} in project {project_id}.
        slots:
          version_number: path.version_number
          id: path.id
          project_id: path.project_id
      - text: Show the filters of flag {id} at version {version_number} in project {project_id}.
        slots:
          id: path.id
          version_number: path.version_number
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/feature_flags/activity/'].get
  update:
    x-apievangelist-phrasing:
      intent: List activity across all flags
      effect: read
      questions:
      - Who created or changed feature flags across my whole project?
      - Can I page through activity for all flags at once?
      instructions:
      - text: List activity across all feature flags in project {project_id}.
        slots:
          project_id: path.project_id
      - text: Show page {page} of activity for every flag in project {project_id}.
        slots:
          page: query.page
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/feature_flags/bulk_delete/'].post
  update:
    x-apievangelist-phrasing:
      intent: Bulk delete feature flags
      effect: destructive
      questions:
      - Can I delete several feature flags at once?
      - Does bulk flag deletion accept the same filters as the flag list?
      - What happens to the flags I remove in a bulk delete?
      instructions:
      - text: Bulk delete feature flags in project {project_id} matching filters {filters}.
        slots:
          project_id: path.project_id
          filters: requestBody.filters
      - text: Bulk delete flag {id} and others I list in project {project_id}.
        slots:
          id: requestBody.id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/feature_flags/bulk_keys/'].post
  update:
    x-apievangelist-phrasing:
      intent: Look up feature flag keys by ID
      effect: read
      questions:
      - What key does each of these feature flags have?
      - Can I look up flag keys from a list of IDs?
      instructions:
      - text: Get the feature flag key for flag ID {id} in project {project_id}.
        slots:
          id: requestBody.id
          project_id: path.project_id
      - text: Map flag ID {id} to its key in project {project_id}.
        slots:
          id: requestBody.id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/feature_flags/bulk_update_tags/'].post
  update:
    x-apievangelist-phrasing:
      intent: Bulk add, remove or replace tags on flags
      effect: write
      questions:
      - Can I add tags to many feature flags in one request?
      - Is there a way to remove specific tags from several flags?
      instructions:
      - text: Apply {action} action with tags {tags} to feature flags {ids} in project {project_id}.
        slots:
          action: requestBody.action
          tags: requestBody.tags
          ids: requestBody.ids
          project_id: path.project_id
      - text: Bulk {action} tags {tags} on flags {ids} in project {project_id}.
        slots:
          action: requestBody.action
          tags: requestBody.tags
          ids: requestBody.ids
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/feature_flags/evaluation_reasons/'].get
  update:
    x-apievangelist-phrasing:
      intent: See why flags returned values for a user
      effect: read
      questions:
      - Why did a feature flag return on or off for one user?
      - Can I see the reason a flag evaluated a certain way for a person?
      instructions:
      - text: Show evaluation reasons for distinct ID {distinct_id} in project {project_id}.
        slots:
          distinct_id: query.distinct_id
          project_id: path.project_id
      - text: Explain flag results for {distinct_id} in groups {groups} in project {project_id}.
        slots:
          distinct_id: query.distinct_id
          groups: query.groups
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/feature_flags/local_evaluation/'].get
  update:
    x-apievangelist-phrasing:
      intent: Evaluate flags on a user's own device
      effect: read
      questions:
      - Can I evaluate flags locally on my own device?
      - Is there a local flag evaluation endpoint that includes cohorts?
      instructions:
      - text: Evaluate feature flags locally for project {project_id}.
        slots:
          project_id: path.project_id
      - text: 'Run a local flag evaluation for project {project_id} with cohorts: {send_cohorts}.'
        slots:
          project_id: path.project_id
          send_cohorts: query.send_cohorts
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/feature_flags/matching_ids/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get IDs of flags matching filters
      effect: read
      questions:
      - Which feature flag IDs match my current filters?
      - Can I get only the flag IDs I'm allowed to edit?
      instructions:
      - text: Get the IDs of feature flags matching my filters.
      - text: List only the flag IDs in project {project_id} that I can edit.
        slots:
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/feature_flags/my_flags/'].get
  update:
    x-apievangelist-phrasing:
      intent: List flags I have access to
      effect: read
      questions:
      - Which feature flags can I edit?
      - Can I see the flags I'm assigned to in a project?
      instructions:
      - text: List my feature flags in project {project_id}.
        slots:
          project_id: path.project_id
      - text: Show the flags I have access to for groups {groups}.
        slots:
          groups: query.groups
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/feature_flags/user_blast_radius/'].post
  update:
    x-apievangelist-phrasing:
      intent: Estimate users affected by a release condition
      effect: read
      questions:
      - How many users would a flag's release condition reach?
      - Can I calculate a blast radius for a group-based flag condition?
      instructions:
      - text: Calculate the user blast radius in project {project_id} for condition {condition}.
        slots:
          project_id: path.project_id
          condition: requestBody.condition
      - text: Estimate affected users in project {project_id} for condition {condition} on group type index {group_type_index}.
        slots:
          project_id: path.project_id
          condition: requestBody.condition
          group_type_index: requestBody.group_type_index
      method: generated
      generated: '2026-11-16'

Work with this as data

Every overlay here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for openapi overlays

4 MCP tools reach this
  • find_overlaysBrowse and filter every overlay in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/posthog-feature-flags-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.