PostHog · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for PostHog Web Experiments API

7 actions 7 updates phrasing extends openapi/posthog-web-experiments-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 7

$.info
$.paths['/api/projects/{project_id}/web_experiments/'].get
$.paths['/api/projects/{project_id}/web_experiments/'].post
$.paths['/api/projects/{project_id}/web_experiments/{id}/'].get
$.paths['/api/projects/{project_id}/web_experiments/{id}/'].put
$.paths['/api/projects/{project_id}/web_experiments/{id}/'].delete
$.paths['/api/projects/{project_id}/web_experiments/{id}/'].patch

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 Web Experiments API
  version: 1.0.0
extends: openapi/posthog-web-experiments-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: 6
- target: $.paths['/api/projects/{project_id}/web_experiments/'].get
  update:
    x-apievangelist-phrasing:
      intent: List web experiments
      effect: read
      questions:
      - What A/B experiments are running on my site?
      - Can I page through all web experiments in a project?
      instructions:
      - text: List web experiments in project {project_id}.
        slots:
          project_id: path.project_id
      - text: Show {limit} web experiments starting at {offset}.
        slots:
          limit: query.limit
          offset: query.offset
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/web_experiments/'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a web experiment
      effect: write
      questions:
      - How do I run an A/B test on a page element?
      - Can I create a web experiment tied to a feature flag?
      instructions:
      - text: Create web experiment {name} with variants {variants} on feature flag {feature_flag_key} in project {project_id}.
        slots:
          name: requestBody.name
          variants: requestBody.variants
          feature_flag_key: requestBody.feature_flag_key
          project_id: path.project_id
      - text: Add a new A/B test {name} to project {project_id}.
        slots:
          name: requestBody.name
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/web_experiments/{id}/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a web experiment
      effect: read
      questions:
      - What variants and feature flag does a web experiment use?
      - Can I look up one web experiment by ID?
      instructions:
      - text: Get web experiment {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Show the variants of web experiment {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/web_experiments/{id}/'].put
  update:
    x-apievangelist-phrasing:
      intent: Replace a web experiment
      effect: write
      questions:
      - How do I overwrite all variants of an existing web experiment?
      - Can I change the feature flag a web experiment targets?
      instructions:
      - text: Replace web experiment {id} in project {project_id} with variants {variants} and feature flag {feature_flag_key}.
        slots:
          id: path.id
          project_id: path.project_id
          variants: requestBody.variants
          feature_flag_key: requestBody.feature_flag_key
      - text: Overwrite the full web experiment {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/web_experiments/{id}/'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a web experiment
      effect: destructive
      questions:
      - How do I stop and delete a web experiment?
      - Can I remove a web experiment by its ID?
      instructions:
      - text: Delete web experiment {id} from project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Stop and remove web experiment {id}.
        slots:
          id: path.id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/web_experiments/{id}/'].patch
  update:
    x-apievangelist-phrasing:
      intent: Change some fields of a web experiment
      effect: write
      questions:
      - Can I rename a web experiment without resending all variants?
      - How do I change just the feature flag of an existing experiment?
      instructions:
      - text: Rename web experiment {id} to {name} in project {project_id}.
        slots:
          id: path.id
          name: requestBody.name
          project_id: path.project_id
      - text: Point existing web experiment {id} at feature flag {feature_flag_key}.
        slots:
          id: path.id
          feature_flag_key: requestBody.feature_flag_key
      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-web-experiments-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.