PostHog · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for PostHog Endpoints API

27 actions 27 updates phrasing extends openapi/posthog-endpoints-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 27 · first 16 shown; the file carries all of them

$.info
$.paths['/api/environments/{environment_id}/endpoints/'].get
$.paths['/api/environments/{environment_id}/endpoints/'].post
$.paths['/api/environments/{environment_id}/endpoints/{name}/'].get
$.paths['/api/environments/{environment_id}/endpoints/{name}/'].put
$.paths['/api/environments/{environment_id}/endpoints/{name}/'].delete
$.paths['/api/environments/{environment_id}/endpoints/{name}/'].patch
$.paths['/api/environments/{environment_id}/endpoints/{name}/materialization_preview/'].post
$.paths['/api/environments/{environment_id}/endpoints/{name}/materialization_status/'].get
$.paths['/api/environments/{environment_id}/endpoints/{name}/openapi.json/'].get
$.paths['/api/environments/{environment_id}/endpoints/{name}/run/'].get
$.paths['/api/environments/{environment_id}/endpoints/{name}/run/'].post
$.paths['/api/environments/{environment_id}/endpoints/{name}/versions/'].get
$.paths['/api/environments/{environment_id}/endpoints/last_execution_times/'].post
$.paths['/api/projects/{project_id}/endpoints/'].get
$.paths['/api/projects/{project_id}/endpoints/'].post

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 Endpoints API
  version: 1.0.0
extends: openapi/posthog-endpoints-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: 26
- target: $.paths['/api/environments/{environment_id}/endpoints/'].get
  update:
    x-apievangelist-phrasing:
      intent: List endpoints in an environment
      effect: read
      questions:
      - Which endpoints exist in an older environment?
      - Can I list only active endpoints in an environment?
      instructions:
      - text: List endpoints in environment {environment_id}.
        slots:
          environment_id: path.environment_id
      - text: Show active endpoints in environment {environment_id} with {limit} per page.
        slots:
          environment_id: path.environment_id
          limit: query.limit
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/endpoints/'].post
  update:
    x-apievangelist-phrasing:
      intent: Create an endpoint in an environment
      effect: write
      questions:
      - How do I create a new endpoint in an environment?
      - Can I set freshness and materialization when creating an endpoint?
      instructions:
      - text: Create endpoint {name} in environment {environment_id} running {query}.
        slots:
          name: requestBody.name
          environment_id: path.environment_id
          query: requestBody.query
      - text: Add an active endpoint {name} to environment {environment_id} with freshness {data_freshness_seconds}.
        slots:
          name: requestBody.name
          environment_id: path.environment_id
          data_freshness_seconds: requestBody.data_freshness_seconds
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/endpoints/{name}/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get an endpoint in an environment
      effect: read
      questions:
      - Is a given named endpoint in this environment materialized?
      - Can I fetch an environment endpoint by name?
      instructions:
      - text: Get environment endpoint {name} in {environment_id}.
        slots:
          name: path.name
          environment_id: path.environment_id
      - text: Show the materialization status of endpoint {name} in environment {environment_id}.
        slots:
          name: path.name
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/endpoints/{name}/'].put
  update:
    x-apievangelist-phrasing:
      intent: Replace an endpoint in an environment
      effect: write
      questions:
      - How do I overwrite an endpoint's query in an environment?
      - Can I deactivate an endpoint in an environment?
      instructions:
      - text: Replace endpoint {name} in environment {environment_id} with query {query}.
        slots:
          name: path.name
          environment_id: path.environment_id
          query: requestBody.query
      - text: Set endpoint {name} in environment {environment_id} inactive.
        slots:
          name: path.name
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/endpoints/{name}/'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete an endpoint in an environment
      effect: destructive
      questions:
      - How do I delete an endpoint from an environment?
      - Does deleting an environment endpoint clean up its materialization?
      instructions:
      - text: Delete endpoint {name} from environment {environment_id}.
        slots:
          name: path.name
          environment_id: path.environment_id
      - text: Remove the materialized query for endpoint {name} in environment {environment_id}.
        slots:
          name: path.name
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/endpoints/{name}/'].patch
  update:
    x-apievangelist-phrasing:
      intent: Patch an endpoint in an environment
      effect: write
      questions:
      - Can I change just the description of an endpoint in an environment?
      - Is it possible to soft-delete an environment endpoint?
      instructions:
      - text: Patch endpoint {name} in environment {environment_id} with description {description}.
        slots:
          name: path.name
          environment_id: path.environment_id
          description: requestBody.description
      - text: Soft-delete endpoint {name} in environment {environment_id} by setting deleted {deleted}.
        slots:
          name: path.name
          environment_id: path.environment_id
          deleted: requestBody.deleted
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/endpoints/{name}/materialization_preview/'].post
  update:
    x-apievangelist-phrasing:
      intent: Preview materialization of an endpoint
      effect: read
      questions:
      - What will an endpoint's query look like after materialization?
      - Can I override bucket functions when previewing materialization?
      instructions:
      - text: Preview materialization of endpoint {name} in environment {environment_id}.
        slots:
          name: path.name
          environment_id: path.environment_id
      - text: Materialize endpoint {name} in environment {environment_id} with bucket overrides {bucket_overrides}.
        slots:
          name: path.name
          environment_id: path.environment_id
          bucket_overrides: requestBody.bucket_overrides
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/endpoints/{name}/materialization_status/'].get
  update:
    x-apievangelist-phrasing:
      intent: Check an environment endpoint's materialization status
      effect: read
      questions:
      - Has the endpoint in my environment been materialized yet?
      - Can I check materialization status of an environment endpoint by version?
      instructions:
      - text: Get materialization status of endpoint {name} in {environment_id}.
        slots:
          name: path.name
          environment_id: path.environment_id
      - text: Check whether environment endpoint {name} in {environment_id} is materialized.
        slots:
          name: path.name
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/endpoints/{name}/openapi.json/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get an endpoint's OpenAPI spec
      effect: read
      questions:
      - How do I generate a typed SDK client for an endpoint?
      - Can I get the OpenAPI spec for an older endpoint version?
      instructions:
      - text: Get the OpenAPI spec for endpoint {name} in environment {environment_id}.
        slots:
          name: path.name
          environment_id: path.environment_id
      - text: Generate an SDK spec for version {version} of endpoint {name} in environment {environment_id}.
        slots:
          version: query.version
          name: path.name
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/endpoints/{name}/run/'].get
  update:
    x-apievangelist-phrasing:
      intent: Run a saved endpoint in an environment
      effect: read
      questions:
      - Can I execute a saved endpoint in my environment and get its results back?
      - What happens if I run an environment endpoint without choosing a version?
      - Is there a way to fetch the output of a named endpoint from an older environment?
      instructions:
      - text: Run the saved endpoint {name} in environment {environment_id} and return its results.
        slots:
          name: path.name
          environment_id: path.environment_id
      - text: Execute the latest version of endpoint {name} under environment {environment_id}.
        slots:
          name: path.name
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/endpoints/{name}/run/'].post
  update:
    x-apievangelist-phrasing:
      intent: Run an endpoint in an environment with filters
      effect: read
      questions:
      - Can I filter the results when running an endpoint in an environment?
      - How do I limit how many rows an environment endpoint returns?
      instructions:
      - text: Run endpoint {name} in environment {environment_id} with filters {filters_override}.
        slots:
          name: path.name
          environment_id: path.environment_id
          filters_override: requestBody.filters_override
      - text: Execute endpoint {name} in environment {environment_id} limited to {limit} rows.
        slots:
          name: path.name
          environment_id: path.environment_id
          limit: requestBody.limit
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/endpoints/{name}/versions/'].get
  update:
    x-apievangelist-phrasing:
      intent: List versions of an endpoint
      effect: read
      questions:
      - What versions exist for an endpoint?
      - Can I list only the active versions of an endpoint?
      instructions:
      - text: List versions of endpoint {name} in environment {environment_id}.
        slots:
          name: path.name
          environment_id: path.environment_id
      - text: Show active versions of endpoint {name} in environment {environment_id}.
        slots:
          name: path.name
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/endpoints/last_execution_times/'].post
  update:
    x-apievangelist-phrasing:
      intent: Get recent execution times for endpoints
      effect: read
      questions:
      - When was each of my endpoints last executed?
      - Can I check execution times for several endpoints at once?
      instructions:
      - text: Get last execution times for endpoints {names} in environment {environment_id}.
        slots:
          names: requestBody.names
          environment_id: path.environment_id
      - text: Show when endpoints {names} were last run in environment {environment_id}.
        slots:
          names: requestBody.names
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/endpoints/'].get
  update:
    x-apievangelist-phrasing:
      intent: List endpoints in a project
      effect: read
      questions:
      - Which endpoints exist in my project?
      - Can I list only endpoints created by a specific user?
      instructions:
      - text: List endpoints in project {project_id}.
        slots:
          project_id: path.project_id
      - text: Show endpoints in project {project_id} created by {created_by}.
        slots:
          project_id: path.project_id
          created_by: query.created_by
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/endpoints/'].post
  update:
    x-apievangelist-phrasing:
      intent: Create an endpoint in a project
      effect: write
      questions:
      - How do I create a new endpoint in a project?
      - Can I make an endpoint materialized and set its freshness?
      instructions:
      - text: Create endpoint {name} in project {project_id} with query {query}.
        slots:
          name: requestBody.name
          project_id: path.project_id
          query: requestBody.query
      - text: Add an active endpoint {name} to project {project_id} with freshness {data_freshness_seconds}.
        slots:
          name: requestBody.name
          project_id: path.project_id
          data_freshness_seconds: requestBody.data_freshness_seconds
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/endpoints/{name}/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a project endpoint
      effect: read
      questions:
      - What does a materialized project endpoint return?
      - Can I fetch a project-level endpoint by name?
      instructions:
      - text: Get project endpoint {name} in project {project_id}.
        slots:
          name: path.name
          project_id: path.project_id
      - text: Show materialization status of endpoint {name} in project {project_id}.
        slots:
          name: path.name
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/endpoints/{name}/'].put
  update:
    x-apievangelist-phrasing:
      intent: Replace an endpoint in a project
      effect: write
      questions:
      - How do I overwrite an endpoint's query in a project?
      - Can I deactivate an endpoint in a project?
      instructions:
      - text: Replace endpoint {name} in project {project_id} with query {query}.
        slots:
          name: path.name
          project_id: path.project_id
          query: requestBody.query
      - text: Set endpoint {name} in project {project_id} inactive.
        slots:
          name: path.name
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/endpoints/{name}/'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete an endpoint in a project
      effect: destructive
      questions:
      - How do I delete an endpoint from a project?
      - Does deleting a project endpoint clean up its materialization?
      instructions:
      - text: Delete endpoint {name} from project {project_id}.
        slots:
          name: path.name
          project_id: path.project_id
      - text: Remove the materialized query for endpoint {name} in project {project_id}.
        slots:
          name: path.name
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/endpoints/{name}/'].patch
  update:
    x-apievangelist-phrasing:
      intent: Patch an endpoint in a project
      effect: write
      questions:
      - Can I change just the description of an endpoint in a project?
      - Is it possible to soft-delete a project endpoint?
      instructions:
      - text: Patch endpoint {name} in project {project_id} with description {description}.
        slots:
          name: path.name
          project_id: path.project_id
          description: requestBody.description
      - text: Soft-delete endpoint {name} in project {project_id} by setting deleted {deleted}.
        slots:
          name: path.name
          project_id: path.project_id
          deleted: requestBody.deleted
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/endpoints/{name}/materialization_preview/'].post
  update:
    x-apievangelist-phrasing:
      intent: Preview an endpoint's materialization transform
      effect: read
      questions:
      - How would a project endpoint look once its materialization is built?
      - Can I preview materialization bucket functions for an endpoint?
      instructions:
      - text: Preview materialization of endpoint {name} in project {project_id}.
        slots:
          name: path.name
          project_id: path.project_id
      - text: Show materialization preview for endpoint {name} in {project_id} with bucket overrides {overrides}.
        slots:
          name: path.name
          project_id: path.project_id
          overrides: requestBody.bucket_overrides
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/endpoints/{name}/materialization_status/'].get
  update:
    x-apievangelist-phrasing:
      intent: Check whether an endpoint has been materialized
      effect: read
      questions:
      - Has my custom endpoint finished materializing?
      - Can I check the materialization status of an endpoint?
      instructions:
      - text: Get the materialization status of endpoint {name} in project {project_id}.
        slots:
          name: path.name
          project_id: path.project_id
      - text: Check whether endpoint {name} in project {project_id} is materialized.
        slots:
          name: path.name
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/endpoints/{name}/openapi.json/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get the OpenAPI spec for an endpoint
      effect: read
      questions:
      - Can I generate a typed client for my custom endpoint?
      - Where do I get the OpenAPI 3.0 spec for an endpoint?
      instructions:
      - text: Get the OpenAPI spec for endpoint {name} in project {project_id}.
        slots:
          name: path.name
          project_id: path.project_id
      - text: Generate a typed SDK client for endpoint {name} in project {project_id}.
        slots:
          name: path.name
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/endpoints/{name}/run/'].get
  update:
    x-apievangelist-phrasing:
      intent: Run an endpoint without materialization
      effect: read
      questions:
      - Can I run my custom endpoint without materializing it?
      - What does an endpoint return when I execute it without materializing?
      instructions:
      - text: Run endpoint {name} in project {project_id} without materializing.
        slots:
          name: path.name
          project_id: path.project_id
      - text: Execute endpoint {name} in project {project_id} and return the results.
        slots:
          name: path.name
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/endpoints/{name}/run/'].post
  update:
    x-apievangelist-phrasing:
      intent: Run an endpoint with materialization
      effect: write
      questions:
      - How do I run an endpoint and save its results as a materialized table?
      - Can I limit how many rows an endpoint returns when I run it?
      - Is it possible to run an endpoint with a specific version?
      instructions:
      - text: Run endpoint {name} in project {project_id} and materialize the results.
        slots:
          name: path.name
          project_id: path.project_id
      - text: Execute endpoint {name} in project {project_id} with variables {variables} and materialize.
        slots:
          name: path.name
          project_id: path.project_id
          variables: requestBody.variables
      - text: Run endpoint {name} in project {project_id} using version {version}.
        slots:
          name: path.name
          project_id: path.project_id
          version: requestBody.version
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/endpoints/{name}/versions/'].get
  update:
    x-apievangelist-phrasing:
      intent: List versions of an endpoint
      effect: read
      questions:
      - Which versions of my endpoint exist?
      - Can I see only the active versions of an endpoint?
      instructions:
      - text: List all versions of endpoint {name} in project {project_id}.
        slots:
          name: path.name
          project_id: path.project_id
      - text: Show versions of endpoint {name} in project {project_id} where active is {is_active}.
        slots:
          name: path.name
          project_id: path.project_id
          is_active: query.is_active
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/endpoints/last_execution_times/'].post
  update:
    x-apievangelist-phrasing:
      intent: Get last execution times for several endpoints
      effect: read
      questions:
      - When were my endpoints last executed?
      - Can I check the last execution time of multiple endpoints at once?
      instructions:
      - text: Get the last execution times for endpoints {names} in project {project_id}.
        slots:
          names: requestBody.names
          project_id: path.project_id
      - text: Show when endpoints {names} in project {project_id} were last run.
        slots:
          names: requestBody.names
          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.
All 92 tools →

Call it yourself

curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/posthog-endpoints-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.