PostHog · OpenAPI Overlay 1.0.0
API Evangelist conversational phrasing for PostHog Experiments API
23 actions
23 updates
phrasing
extends
openapi/posthog-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.
What the actions change
x-apievangelist-phrasing
Targets 23 · first 16 shown; the file carries all of them
$.info
$.paths['/api/projects/{project_id}/experiments/'].get
$.paths['/api/projects/{project_id}/experiments/'].post
$.paths['/api/projects/{project_id}/experiments/{id}/'].get
$.paths['/api/projects/{project_id}/experiments/{id}/'].put
$.paths['/api/projects/{project_id}/experiments/{id}/'].delete
$.paths['/api/projects/{project_id}/experiments/{id}/'].patch
$.paths['/api/projects/{project_id}/experiments/{id}/archive/'].post
$.paths['/api/projects/{project_id}/experiments/{id}/copy_to_project/'].post
$.paths['/api/projects/{project_id}/experiments/{id}/create_exposure_cohort_for_experiment/'].post
$.paths['/api/projects/{project_id}/experiments/{id}/duplicate/'].post
$.paths['/api/projects/{project_id}/experiments/{id}/end/'].post
$.paths['/api/projects/{project_id}/experiments/{id}/launch/'].post
$.paths['/api/projects/{project_id}/experiments/{id}/pause/'].post
$.paths['/api/projects/{project_id}/experiments/{id}/recalculate_timeseries/'].post
$.paths['/api/projects/{project_id}/experiments/{id}/reset/'].post
OpenAPI Overlay
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for PostHog Experiments API
version: 1.0.0
extends: openapi/posthog-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: 22
- target: $.paths['/api/projects/{project_id}/experiments/'].get
update:
x-apievangelist-phrasing:
intent: List experiments in a project
effect: read
questions:
- Which A/B experiments are running in my project?
- Can I filter experiments by status or creator?
- How do I find an experiment by name?
instructions:
- text: List experiments in project {project_id}.
slots:
project_id: path.project_id
- text: Show experiments in project {project_id} with status {status}.
slots:
project_id: path.project_id
status: query.status
- text: Find experiments in project {project_id} created by user {created_by_id}.
slots:
project_id: path.project_id
created_by_id: query.created_by_id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/experiments/'].post
update:
x-apievangelist-phrasing:
intent: Create a new experiment
effect: write
questions:
- How do I set up a new A/B experiment with a feature flag?
- Can I add metrics and variants when creating an experiment?
- What does an experiment need to be created in draft status?
instructions:
- text: Create experiment {name} with feature flag {feature_flag_key} in project {project_id}.
slots:
name: requestBody.name
feature_flag_key: requestBody.feature_flag_key
project_id: path.project_id
- text: Create experiment {name} in project {project_id} with metrics {saved_metrics}.
slots:
name: requestBody.name
project_id: path.project_id
saved_metrics: requestBody.saved_metrics
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/experiments/{id}/'].get
update:
x-apievangelist-phrasing:
intent: Get an experiment's status and results
effect: read
questions:
- What is the current status of a specific experiment?
- Can I see an experiment's metrics and feature flag?
instructions:
- text: Get experiment {id} in project {project_id}.
slots:
id: path.id
project_id: path.project_id
- text: Show the results metadata of experiment {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}/experiments/{id}/'].put
update:
x-apievangelist-phrasing:
intent: Replace an experiment's configuration
effect: write
questions:
- How do I change an experiment's metrics or variants in one full update?
- Can I replace an experiment's whole configuration?
instructions:
- text: Replace experiment {id} in project {project_id} with metrics {saved_metrics}.
slots:
id: path.id
project_id: path.project_id
saved_metrics: requestBody.saved_metrics
- text: Update experiment {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}/experiments/{id}/'].delete
update:
x-apievangelist-phrasing:
intent: Delete an experiment (hard delete not allowed)
effect: destructive
questions:
- Can I hard delete an experiment?
- What happens to an experiment when I delete it?
instructions:
- text: Delete experiment {id} in project {project_id}.
slots:
id: path.id
project_id: path.project_id
- text: Hard delete experiment {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}/experiments/{id}/'].patch
update:
x-apievangelist-phrasing:
intent: Change an experiment's name or description
effect: write
questions:
- How do I rename an experiment?
- Can I change an experiment's description without resending everything?
instructions:
- text: Rename experiment {id} in project {project_id} to {name}.
slots:
id: path.id
project_id: path.project_id
name: requestBody.name
- text: Change the description of experiment {id} in project {project_id} to {description}.
slots:
id: path.id
project_id: path.project_id
description: requestBody.description
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/experiments/{id}/archive/'].post
update:
x-apievangelist-phrasing:
intent: Archive an ended experiment
effect: write
questions:
- How do I archive an experiment that has ended?
- Can I hide an experiment from the list view?
instructions:
- text: Archive experiment {id} in project {project_id}.
slots:
id: path.id
project_id: path.project_id
- text: Hide ended experiment {id} in project {project_id} by archiving it.
slots:
id: path.id
project_id: path.project_id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/experiments/{id}/copy_to_project/'].post
update:
x-apievangelist-phrasing:
intent: Copy an experiment to another team's project
effect: write
questions:
- How do I copy an experiment into a different team's project?
- Can I give a copied experiment a new name and feature flag key?
instructions:
- text: Copy experiment {id} from project {project_id} into team {target_team_id}'s project.
slots:
id: path.id
project_id: path.project_id
target_team_id: requestBody.target_team_id
- text: Copy experiment {id} into team {target_team_id}'s project as {name} with flag {feature_flag_key}.
slots:
id: path.id
target_team_id: requestBody.target_team_id
name: requestBody.name
feature_flag_key: requestBody.feature_flag_key
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/experiments/{id}/create_exposure_cohort_for_experiment/'].post
update:
x-apievangelist-phrasing:
intent: Create an exposure cohort for an experiment
effect: write
questions:
- How do I define a cohort of users who can be exposed to an experiment?
- Can I create an exposure cohort for an experiment before launching it?
instructions:
- text: Create exposure cohort {name} for experiment {id} in project {project_id}.
slots:
name: requestBody.name
id: path.id
project_id: path.project_id
- text: Define an exposure cohort for experiment {id} in project {project_id} with filters {filters}.
slots:
id: path.id
project_id: path.project_id
filters: requestBody.filters
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/experiments/{id}/duplicate/'].post
update:
x-apievangelist-phrasing:
intent: Duplicate an experiment
effect: write
questions:
- How do I make a copy of an existing experiment?
- Can I duplicate an experiment with a new name and feature flag key?
instructions:
- text: Duplicate experiment {id} in project {project_id} as {name} with flag {feature_flag_key}.
slots:
id: path.id
project_id: path.project_id
name: requestBody.name
feature_flag_key: requestBody.feature_flag_key
- text: Make a copy of experiment {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}/experiments/{id}/end/'].post
update:
x-apievangelist-phrasing:
intent: End a running experiment
effect: write
questions:
- How do I end a running experiment without shipping a variant?
- Can I set a conclusion on an experiment when I end it?
instructions:
- text: End experiment {id} in project {project_id}.
slots:
id: path.id
project_id: path.project_id
- text: End experiment {id} in project {project_id} with conclusion {conclusion}.
slots:
id: path.id
project_id: path.project_id
conclusion: requestBody.conclusion
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/experiments/{id}/launch/'].post
update:
x-apievangelist-phrasing:
intent: Launch a draft experiment
effect: write
questions:
- How do I launch a draft experiment so it starts sending traffic?
- What does launching an experiment do to its feature flag?
instructions:
- text: Launch experiment {id} in project {project_id}.
slots:
id: path.id
project_id: path.project_id
- text: Activate the feature flag of experiment {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}/experiments/{id}/pause/'].post
update:
x-apievangelist-phrasing:
intent: Pause a running experiment
effect: write
questions:
- How do I pause an experiment so it stops sending traffic?
- What happens to users when an experiment is paused?
instructions:
- text: Pause experiment {id} in project {project_id}.
slots:
id: path.id
project_id: path.project_id
- text: Deactivate the feature flag of experiment {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}/experiments/{id}/recalculate_timeseries/'].post
update:
x-apievangelist-phrasing:
intent: Recalculate an experiment's timeseries results
effect: write
questions:
- How do I rebuild the timeseries results behind an experiment?
- Can I force an experiment's timeseries to be recalculated from scratch?
- Why would I need to recalculate an experiment's timeseries?
instructions:
- text: Recalculate the timeseries for experiment {id} in project {project_id}.
slots:
id: path.id
project_id: path.project_id
- text: Rebuild the timeseries data of experiment {id} in project {project_id} named {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}/experiments/{id}/reset/'].post
update:
x-apievangelist-phrasing:
intent: Reset an experiment back to draft
effect: write
questions:
- How do I reset an experiment so I can change its start and end dates?
- Does resetting an experiment archive it or clear its conclusion?
instructions:
- text: Reset experiment {id} in project {project_id} back to draft.
slots:
id: path.id
project_id: path.project_id
- text: Clear the conclusion and dates on experiment {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}/experiments/{id}/resume/'].post
update:
x-apievangelist-phrasing:
intent: Resume a paused experiment
effect: write
questions:
- How do I restart a paused experiment so users see their original variant again?
- What happens to exposure tracking when a paused experiment is resumed?
instructions:
- text: Resume experiment {id} in project {project_id}.
slots:
id: path.id
project_id: path.project_id
- text: Reactivate the feature flag for experiment {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}/experiments/{id}/ship_variant/'].post
update:
x-apievangelist-phrasing:
intent: Ship a variant to 100% of users
effect: write
questions:
- How do I roll out a winning variant to every user?
- Can I end an experiment and ship a variant in one step?
instructions:
- text: Ship variant {variant_key} of experiment {id} in project {project_id}.
slots:
variant_key: requestBody.variant_key
id: path.id
project_id: path.project_id
- text: End experiment {id} in project {project_id} and conclude it as {conclusion}.
slots:
id: path.id
project_id: path.project_id
conclusion: requestBody.conclusion
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/experiments/{id}/timeseries_results/'].get
update:
x-apievangelist-phrasing:
intent: Get an experiment's timeseries results
effect: read
questions:
- What does an experiment's result look like over time?
- Can I fetch the timeseries for one metric in an experiment?
instructions:
- text: Get the timeseries results for metric {metric_uuid} in experiment {id} of project {project_id}.
slots:
metric_uuid: query.metric_uuid
id: path.id
project_id: path.project_id
- text: Show experiment {id} results in project {project_id} for fingerprint {fingerprint}.
slots:
id: path.id
project_id: path.project_id
fingerprint: query.fingerprint
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/experiments/{id}/unarchive/'].post
update:
x-apievangelist-phrasing:
intent: Restore an archived experiment
effect: write
questions:
- How do I bring an archived experiment back into the experiment list?
- Can I unarchive an experiment that is still running?
instructions:
- text: Unarchive experiment {id} in project {project_id}.
slots:
id: path.id
project_id: path.project_id
- text: Restore archived experiment {id} to the default view 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}/experiments/eligible_feature_flags/'].get
update:
x-apievangelist-phrasing:
intent: List feature flags eligible for experiments
effect: read
questions:
- Which multivariate feature flags can I use for an experiment?
- What flags are eligible for experiments in my project?
instructions:
- text: List feature flags eligible for experiments in project {project_id}.
slots:
project_id: path.project_id
- text: Show multivariate flags with at least two variants in project {project_id}.
slots:
project_id: path.project_id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/experiments/requires_flag_implementation/'].get
update:
x-apievangelist-phrasing:
intent: List experiments needing flag implementation
effect: read
questions:
- Which experiments are waiting on flag implementation?
- Can I see experiments that still need their feature flag code?
instructions:
- text: List experiments in project {project_id} that require flag implementation.
slots:
project_id: path.project_id
- text: Show experiments needing flag implementation in project {project_id}.
slots:
project_id: path.project_id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/experiments/stats/'].get
update:
x-apievangelist-phrasing:
intent: Get experiment statistics for a project
effect: read
questions:
- What are the overall experiment statistics for my project?
- Can I see experiment stats across all experiments in a project?
instructions:
- text: Get experiment statistics for project {project_id}.
slots:
project_id: path.project_id
- text: Show overall experiment stats in project {project_id}.
slots:
project_id: path.project_id
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.
Call it yourself
curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/posthog-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.