PostHog · OpenAPI Overlay 1.0.0
API Evangelist conversational phrasing for PostHog Environments API
24 actions
24 updates
phrasing
extends
openapi/posthog-environments-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 24 · first 16 shown; the file carries all of them
$.info
$.paths['/api/projects/{project_id}/environments/'].get
$.paths['/api/projects/{project_id}/environments/'].post
$.paths['/api/projects/{project_id}/environments/{id}/'].get
$.paths['/api/projects/{project_id}/environments/{id}/'].put
$.paths['/api/projects/{project_id}/environments/{id}/'].delete
$.paths['/api/projects/{project_id}/environments/{id}/'].patch
$.paths['/api/projects/{project_id}/environments/{id}/activity/'].get
$.paths['/api/projects/{project_id}/environments/{id}/add_product_intent/'].patch
$.paths['/api/projects/{project_id}/environments/{id}/complete_product_onboarding/'].patch
$.paths['/api/projects/{project_id}/environments/{id}/default_evaluation_contexts/'].get
$.paths['/api/projects/{project_id}/environments/{id}/default_evaluation_contexts/'].post
$.paths['/api/projects/{project_id}/environments/{id}/default_evaluation_contexts/'].delete
$.paths['/api/projects/{project_id}/environments/{id}/default_release_conditions/'].get
$.paths['/api/projects/{project_id}/environments/{id}/default_release_conditions/'].put
$.paths['/api/projects/{project_id}/environments/{id}/delete_secret_token_backup/'].patch
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 Environments API
version: 1.0.0
extends: openapi/posthog-environments-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}/environments/'].get
update:
x-apievangelist-phrasing:
intent: List environments in a project
effect: read
questions:
- What environments exist in my PostHog project?
- Can I page through all the environments of a project?
instructions:
- text: List environments for project {project_id}.
slots:
project_id: path.project_id
- text: Show {limit} environments of project {project_id} starting at {offset}.
slots:
limit: query.limit
project_id: path.project_id
offset: query.offset
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/environments/'].post
update:
x-apievangelist-phrasing:
intent: Create an environment in a project
effect: write
questions:
- How do I add a new environment to a project?
- What details are required to create an environment?
instructions:
- text: Create environment {name} in project {project_id}.
slots:
name: requestBody.name
project_id: path.project_id
- text: Add a new environment to project {project_id} with API token {api_token}.
slots:
project_id: path.project_id
api_token: requestBody.api_token
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/environments/{id}/'].get
update:
x-apievangelist-phrasing:
intent: Get an environment in a project
effect: read
questions:
- What are the settings of one environment in my project?
- Can I fetch a single environment by its ID?
instructions:
- text: Get environment {id} in project {project_id}.
slots:
id: path.id
project_id: path.project_id
- text: Show the configuration of environment {id} of project {project_id}.
slots:
id: path.id
project_id: path.project_id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/environments/{id}/'].put
update:
x-apievangelist-phrasing:
intent: Replace an environment's settings
effect: write
questions:
- How do I overwrite all settings of an environment?
- Can I fully replace an environment's configuration?
instructions:
- text: Replace environment {id} in project {project_id} with name {name}.
slots:
id: path.id
project_id: path.project_id
name: requestBody.name
- text: Overwrite every setting of environment {id} of project {project_id}.
slots:
id: path.id
project_id: path.project_id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/environments/{id}/'].delete
update:
x-apievangelist-phrasing:
intent: Delete an environment from a project
effect: destructive
questions:
- How do I remove an environment from a project?
- Can I delete an environment I no longer need?
instructions:
- text: Delete environment {id} from project {project_id}.
slots:
id: path.id
project_id: path.project_id
- text: Remove the environment {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}/environments/{id}/'].patch
update:
x-apievangelist-phrasing:
intent: Change some settings of an environment
effect: write
questions:
- How do I turn on session recording for just one environment?
- Can I change only a few environment settings without resending the rest?
instructions:
- text: Set session recording on for environment {id} in project {project_id}.
slots:
id: path.id
project_id: path.project_id
- text: Change the timezone of environment {id} of project {project_id} to {timezone}.
slots:
id: path.id
project_id: path.project_id
timezone: requestBody.timezone
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/environments/{id}/activity/'].get
update:
x-apievangelist-phrasing:
intent: Get an environment's activity log
effect: read
questions:
- What has happened in a particular environment recently?
- Can I see the activity feed for one environment?
instructions:
- text: Show the activity log for environment {id} in project {project_id}.
slots:
id: path.id
project_id: path.project_id
- text: List recent activity in environment {id} of project {project_id}.
slots:
id: path.id
project_id: path.project_id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/environments/{id}/add_product_intent/'].patch
update:
x-apievangelist-phrasing:
intent: Add a product intent to an environment
effect: write
questions:
- How do I add a product intent to a team's environment?
- Can I attach a product intent to an environment that already has one?
instructions:
- text: Add product intent {intent} to environment {id} in project {project_id}.
slots:
intent: requestBody.product_intents
id: path.id
project_id: path.project_id
- text: Attach the {intent} product intent to team environment {id}.
slots:
intent: requestBody.product_intents
id: path.id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/environments/{id}/complete_product_onboarding/'].patch
update:
x-apievangelist-phrasing:
intent: Mark an environment's onboarding as complete
effect: write
questions:
- How do I mark a team environment's onboarding as finished?
- Can I finish the onboarding setup for an environment?
instructions:
- text: Complete onboarding for environment {id} in project {project_id}.
slots:
id: path.id
project_id: path.project_id
- text: Mark team environment {id} as onboarding complete.
slots:
id: path.id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/environments/{id}/default_evaluation_contexts/'].get
update:
x-apievangelist-phrasing:
intent: Get default evaluation contexts for an environment
effect: read
questions:
- What default evaluation contexts are set on a team environment?
- Can I read the default evaluation contexts of an environment?
instructions:
- text: Show the default evaluation contexts for environment {id} in project {project_id}.
slots:
id: path.id
project_id: path.project_id
- text: List default evaluation contexts on team environment {id}.
slots:
id: path.id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/environments/{id}/default_evaluation_contexts/'].post
update:
x-apievangelist-phrasing:
intent: Create a default evaluation context for an environment
effect: write
questions:
- How do I create a default evaluation context for a team environment?
- Can I set default evaluation contexts on an environment?
instructions:
- text: Create default evaluation context {name} on environment {id} in project {project_id}.
slots:
name: requestBody.name
id: path.id
project_id: path.project_id
- text: Add default evaluation context {name} to team environment {id}.
slots:
name: requestBody.name
id: path.id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/environments/{id}/default_evaluation_contexts/'].delete
update:
x-apievangelist-phrasing:
intent: Delete an environment's default evaluation context
effect: destructive
questions:
- How do I remove the default evaluation context from an environment?
- Can I delete a default evaluation context on a team environment?
instructions:
- text: Delete the default evaluation context from environment {id} in project {project_id}.
slots:
id: path.id
project_id: path.project_id
- text: Remove default evaluation context on team environment {id}.
slots:
id: path.id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/environments/{id}/default_release_conditions/'].get
update:
x-apievangelist-phrasing:
intent: Get default release conditions for an environment
effect: read
questions:
- What default release conditions apply to new flags in an environment?
- Can I read the default release conditions of an environment?
instructions:
- text: Show default release conditions for environment {id} in project {project_id}.
slots:
id: path.id
project_id: path.project_id
- text: List default release conditions on team environment {id}.
slots:
id: path.id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/environments/{id}/default_release_conditions/'].put
update:
x-apievangelist-phrasing:
intent: Update default release conditions for new flags
effect: write
questions:
- How can I change the default release conditions applied to new feature flags?
- Can I update what conditions new flags start with in a team?
instructions:
- text: Update the default release conditions for new flags in environment {id} of project {project_id}.
slots:
id: path.id
project_id: path.project_id
- text: Change which release conditions new feature flags get by default in team {id}, project {project_id}.
slots:
id: path.id
project_id: path.project_id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/environments/{id}/delete_secret_token_backup/'].patch
update:
x-apievangelist-phrasing:
intent: Delete the backup secret API token
effect: destructive
questions:
- How do I get rid of the backup secret token on an environment?
- Can I remove the old secret API token left over after a rotation?
instructions:
- text: Delete the backup secret token for environment {id} in project {project_id}.
slots:
id: path.id
project_id: path.project_id
- text: Remove the secondary secret API token from team {id} under project {project_id}.
slots:
id: path.id
project_id: path.project_id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/environments/{id}/event_ingestion_restrictions/'].get
update:
x-apievangelist-phrasing:
intent: Get event ingestion restrictions for an environment
effect: read
questions:
- Are there any event ingestion restrictions on this environment?
- What limits are placed on events sent to a team?
instructions:
- text: Show the event ingestion restrictions for environment {id} in project {project_id}.
slots:
id: path.id
project_id: path.project_id
- text: Check ingestion restrictions applied to team {id} under project {project_id}.
slots:
id: path.id
project_id: path.project_id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/environments/{id}/experiments_config/'].get
update:
x-apievangelist-phrasing:
intent: Get experiment configuration for an environment
effect: read
questions:
- What experiment settings are configured for this environment?
- Can I read the experiments config of a team?
instructions:
- text: Show the experiments config for environment {id} in project {project_id}.
slots:
id: path.id
project_id: path.project_id
- text: Read the experiment configuration of team {id} under project {project_id}.
slots:
id: path.id
project_id: path.project_id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/environments/{id}/experiments_config/'].patch
update:
x-apievangelist-phrasing:
intent: Update experiment configuration for an environment
effect: write
questions:
- Can I change the experiment configuration of an environment?
- What's the way to edit a team's experiments settings?
instructions:
- text: Update the experiments config for environment {id} in project {project_id}.
slots:
id: path.id
project_id: path.project_id
- text: Edit the experiment settings of team {id} under project {project_id}.
slots:
id: path.id
project_id: path.project_id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/environments/{id}/generate_conversations_public_token/'].post
update:
x-apievangelist-phrasing:
intent: Generate a public token for conversations
effect: write
questions:
- How do I get a public conversation token for my production project?
- Can I generate a conversations token for a project I am not a member of?
instructions:
- text: Generate a public conversations token for project {project_id} environment {id}.
slots:
project_id: path.project_id
id: path.id
- text: Create a conversations public token for project {project_id} in team {id}.
slots:
project_id: path.project_id
id: path.id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/environments/{id}/is_generating_demo_data/'].get
update:
x-apievangelist-phrasing:
intent: Check if demo data is being generated
effect: read
questions:
- Is the demo data generation still in progress for my project?
- Can I poll whether demo data for an environment has finished?
instructions:
- text: Check if demo data is being generated for project {project_id} environment {id}.
slots:
project_id: path.project_id
id: path.id
- text: Poll the demo generation status for project {project_id} team {id}.
slots:
project_id: path.project_id
id: path.id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/environments/{id}/reset_token/'].patch
update:
x-apievangelist-phrasing:
intent: Reset a project's public API token
effect: destructive
questions:
- How do I reset my project's public API token without changing the secret token?
- Can I rotate only the public token and keep the secret token?
instructions:
- text: Reset the public API token for project {project_id} environment {id}.
slots:
project_id: path.project_id
id: path.id
- text: Rotate just the public token of project {project_id} team {id}, leaving the secret token.
slots:
project_id: path.project_id
id: path.id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/environments/{id}/rotate_secret_token/'].patch
update:
x-apievangelist-phrasing:
intent: Rotate a project's secret API token
effect: destructive
questions:
- How do I rotate my project's secret API token?
- Can I replace the secret token of an environment with a new one?
instructions:
- text: Rotate the secret API token for project {project_id} environment {id}.
slots:
project_id: path.project_id
id: path.id
- text: Generate a new secret token for project {project_id} team {id}.
slots:
project_id: path.project_id
id: path.id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/environments/{id}/settings_as_of/'].get
update:
x-apievangelist-phrasing:
intent: View environment settings as of a past time
effect: read
questions:
- What were my environment's settings at an earlier point in time?
- Can I look back at how a team was configured on a specific past date?
- Is there a way to see historical settings for a PostHog environment, limited to certain keys?
instructions:
- text: Show the historical settings of environment {id} in project {project_id} as they were at a past timestamp.
slots:
id: path.id
project_id: path.project_id
- text: Look up what team {id} in project {project_id} had configured at an earlier date.
slots:
id: path.id
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-environments-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.