PostHog · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for PostHog Customer Analytics API

7 actions 7 updates phrasing extends openapi/posthog-customer-analytics-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}/groups_types/{group_type_index}/metrics/'].get
$.paths['/api/projects/{project_id}/groups_types/{group_type_index}/metrics/'].post
$.paths['/api/projects/{project_id}/groups_types/{group_type_index}/metrics/{id}/'].get
$.paths['/api/projects/{project_id}/groups_types/{group_type_index}/metrics/{id}/'].put
$.paths['/api/projects/{project_id}/groups_types/{group_type_index}/metrics/{id}/'].delete
$.paths['/api/projects/{project_id}/groups_types/{group_type_index}/metrics/{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 Customer Analytics API
  version: 1.0.0
extends: openapi/posthog-customer-analytics-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}/groups_types/{group_type_index}/metrics/'].get
  update:
    x-apievangelist-phrasing:
      intent: List usage metrics for a group type
      effect: read
      questions:
      - What usage metrics are defined for a group type in my project?
      - Can I page through the group usage metrics?
      instructions:
      - text: List usage metrics for group type {group_type_index} in project {project_id}.
        slots:
          group_type_index: path.group_type_index
          project_id: path.project_id
      - text: Show {limit} group usage metrics for {group_type_index} starting at {offset}.
        slots:
          limit: query.limit
          group_type_index: path.group_type_index
          offset: query.offset
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/groups_types/{group_type_index}/metrics/'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a usage metric for a group type
      effect: write
      questions:
      - How do I define a new usage metric for a group type?
      - Can I set a rolling window and display format on a group usage metric?
      instructions:
      - text: Create usage metric {name} for group type {group_type_index} in project {project_id}.
        slots:
          name: requestBody.name
          group_type_index: path.group_type_index
          project_id: path.project_id
      - text: Add a {format} group usage metric {name} with filters {filters}.
        slots:
          format: requestBody.format
          name: requestBody.name
          filters: requestBody.filters
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/groups_types/{group_type_index}/metrics/{id}/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a group usage metric
      effect: read
      questions:
      - How do I look up one usage metric for a group type?
      - What filters and aggregation does a specific group usage metric use?
      instructions:
      - text: Get usage metric {id} for group type {group_type_index} in project {project_id}.
        slots:
          id: path.id
          group_type_index: path.group_type_index
          project_id: path.project_id
      - text: Show the definition of group usage metric {id} on {group_type_index}.
        slots:
          id: path.id
          group_type_index: path.group_type_index
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/groups_types/{group_type_index}/metrics/{id}/'].put
  update:
    x-apievangelist-phrasing:
      intent: Replace a group usage metric
      effect: write
      questions:
      - How do I overwrite a group usage metric's filters and name?
      - Can I change the aggregation math on an existing group usage metric?
      instructions:
      - text: Replace usage metric {id} on group type {group_type_index} in project {project_id} with name {name} and filters {filters}.
        slots:
          id: path.id
          group_type_index: path.group_type_index
          project_id: path.project_id
          name: requestBody.name
          filters: requestBody.filters
      - text: Overwrite group usage metric {id} on {group_type_index} with math {math}.
        slots:
          id: path.id
          group_type_index: path.group_type_index
          math: requestBody.math
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/groups_types/{group_type_index}/metrics/{id}/'].delete
  update:
    x-apievangelist-phrasing:
      intent: Remove a group usage metric
      effect: destructive
      questions:
      - How do I delete a usage metric tracked per group type?
      - Can I remove a group-specific metric from a project?
      instructions:
      - text: Delete group usage metric {id} at index {group_type_index} in project {project_id}.
        slots:
          id: path.id
          group_type_index: path.group_type_index
          project_id: path.project_id
      - text: Remove metric {id} for group type {group_type_index}.
        slots:
          id: path.id
          group_type_index: path.group_type_index
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/groups_types/{group_type_index}/metrics/{id}/'].patch
  update:
    x-apievangelist-phrasing:
      intent: Edit a group usage metric
      effect: write
      questions:
      - Can I change just the display format of a group usage metric?
      - How do I rename a usage metric without resending its filters?
      instructions:
      - text: Change the display of usage metric {id} on group type {group_type_index} in project {project_id} to {display}.
        slots:
          id: path.id
          group_type_index: path.group_type_index
          project_id: path.project_id
          display: requestBody.display
      - text: Rename group usage metric {id} on {group_type_index} to {name}.
        slots:
          id: path.id
          group_type_index: path.group_type_index
          name: requestBody.name
      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-customer-analytics-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.