PostHog · OpenAPI Overlay 1.0.0

API Evangelist conversational phrasing for PostHog Hog Functions API

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

$.info
$.paths['/api/environments/{environment_id}/hog_functions/'].get
$.paths['/api/environments/{environment_id}/hog_functions/'].post
$.paths['/api/environments/{environment_id}/hog_functions/{id}/'].get
$.paths['/api/environments/{environment_id}/hog_functions/{id}/'].put
$.paths['/api/environments/{environment_id}/hog_functions/{id}/'].delete
$.paths['/api/environments/{environment_id}/hog_functions/{id}/'].patch
$.paths['/api/environments/{environment_id}/hog_functions/{id}/enable_backfills/'].post
$.paths['/api/environments/{environment_id}/hog_functions/{id}/invocations/'].post
$.paths['/api/environments/{environment_id}/hog_functions/{id}/logs/'].get
$.paths['/api/environments/{environment_id}/hog_functions/{id}/metrics/'].get
$.paths['/api/environments/{environment_id}/hog_functions/{id}/metrics/totals/'].get
$.paths['/api/environments/{environment_id}/hog_functions/icon/'].get
$.paths['/api/environments/{environment_id}/hog_functions/icons/'].get
$.paths['/api/environments/{environment_id}/hog_functions/rearrange/'].patch
$.paths['/api/projects/{project_id}/hog_functions/'].get

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 Hog Functions API
  version: 1.0.0
extends: openapi/posthog-hog-functions-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: 28
- target: $.paths['/api/environments/{environment_id}/hog_functions/'].get
  update:
    x-apievangelist-phrasing:
      intent: List Hog functions in an environment
      effect: read
      questions:
      - What Hog functions are set up in my legacy environment?
      - Can I filter an environment's functions by type or search their name?
      instructions:
      - text: List Hog functions in environment {environment_id}.
        slots:
          environment_id: path.environment_id
      - text: Show {type} functions in environment {environment_id} matching {search}.
        slots:
          type: query.type
          environment_id: path.environment_id
          search: query.search
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/hog_functions/'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a Hog function in an environment
      effect: write
      questions:
      - How do I add a Hog function to an environment using the legacy endpoint?
      - Can I set filters and mappings on an environment function?
      instructions:
      - text: Create Hog function {name} of type {type} in environment {environment_id}.
        slots:
          name: requestBody.name
          type: requestBody.type
          environment_id: path.environment_id
      - text: Add a {type} function {name} to environment {environment_id} with filters {filters}.
        slots:
          type: requestBody.type
          name: requestBody.name
          environment_id: path.environment_id
          filters: requestBody.filters
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/hog_functions/{id}/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a Hog function in an environment
      effect: read
      questions:
      - What filters and mappings does a specific Hog function in an environment have?
      - Can I look up one environment function by its ID?
      instructions:
      - text: Get Hog function {id} in environment {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      - text: Show the filters and mappings of function {id} in environment {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/hog_functions/{id}/'].put
  update:
    x-apievangelist-phrasing:
      intent: Replace a Hog function in an environment
      effect: write
      questions:
      - How do I overwrite an existing Hog function in an environment?
      - Can I change the source code of an environment function?
      instructions:
      - text: Replace Hog function {id} in environment {environment_id} with code {hog}.
        slots:
          id: path.id
          environment_id: path.environment_id
          hog: requestBody.hog
      - text: Overwrite function {id} in environment {environment_id} with filters {filters}.
        slots:
          id: path.id
          environment_id: path.environment_id
          filters: requestBody.filters
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/hog_functions/{id}/'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a Hog function in an environment
      effect: destructive
      questions:
      - Can I hard delete a Hog function from an environment?
      - Is there a permanent remove for an environment function?
      instructions:
      - text: Delete Hog function {id} from environment {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      - text: Permanently remove function {id} in environment {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/hog_functions/{id}/'].patch
  update:
    x-apievangelist-phrasing:
      intent: Update a Hog function in an environment
      effect: write
      questions:
      - How do I disable just one Hog function in an environment?
      - Can I change the execution order of an environment function?
      instructions:
      - text: Set enabled to {enabled} on Hog function {id} in environment {environment_id}.
        slots:
          enabled: requestBody.enabled
          id: path.id
          environment_id: path.environment_id
      - text: Move function {id} in environment {environment_id} to execution order {execution_order}.
        slots:
          id: path.id
          environment_id: path.environment_id
          execution_order: requestBody.execution_order
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/hog_functions/{id}/enable_backfills/'].post
  update:
    x-apievangelist-phrasing:
      intent: Enable backfills on a Hog function in an environment
      effect: write
      questions:
      - How do I re-run an environment function on past events?
      - Can I turn on backfills for a legacy environment function?
      instructions:
      - text: Enable backfills on Hog function {id} in environment {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      - text: Reprocess old events with function {id} in environment {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/hog_functions/{id}/invocations/'].post
  update:
    x-apievangelist-phrasing:
      intent: Test a Hog function in an environment
      effect: write
      questions:
      - How do I test a Hog function in an environment with a sample event?
      - Can I simulate a backfill invocation on an environment function?
      instructions:
      - text: Test Hog function {id} in environment {environment_id} with event {clickhouse_event}.
        slots:
          id: path.id
          environment_id: path.environment_id
          clickhouse_event: requestBody.clickhouse_event
      - text: Invoke function {id} in environment {environment_id} using test configuration {configuration}.
        slots:
          id: path.id
          environment_id: path.environment_id
          configuration: requestBody.configuration
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/hog_functions/{id}/logs/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get logs for a Hog function in an environment
      effect: read
      questions:
      - What did a Hog function in an environment log during a backfill?
      - Can I filter an environment function's logs by level?
      instructions:
      - text: Show logs for Hog function {id} in environment {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      - text: Get {level} logs for function {id} in environment {environment_id} after {after}.
        slots:
          level: query.level
          id: path.id
          environment_id: path.environment_id
          after: query.after
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/hog_functions/{id}/metrics/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get metrics for a Hog function in an environment
      effect: read
      questions:
      - How many events has a Hog function in an environment processed?
      - Can I break down an environment function's metrics by kind?
      instructions:
      - text: Show metrics for Hog function {id} in environment {environment_id}.
        slots:
          id: path.id
          environment_id: path.environment_id
      - text: Break down function {id} metrics in environment {environment_id} by {breakdown_by}.
        slots:
          id: path.id
          environment_id: path.environment_id
          breakdown_by: query.breakdown_by
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/hog_functions/{id}/metrics/totals/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a Hog function's execution metrics totals
      effect: read
      questions:
      - How many times has a Hog function run and failed over the last day?
      - Can I get a Hog function's metrics broken down by name or kind?
      instructions:
      - text: Show the execution totals for Hog function {id} in env {environment_id} from {after} to {before}.
        slots:
          id: path.id
          environment_id: path.environment_id
          after: query.after
          before: query.before
      - text: Break down Hog function {id} metrics in env {environment_id} by {breakdown_by} between {after} and {before}.
        slots:
          id: path.id
          environment_id: path.environment_id
          breakdown_by: query.breakdown_by
          after: query.after
          before: query.before
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/hog_functions/icon/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get the icon of a Hog function environment
      effect: read
      questions:
      - What icon is shown for a Hog function in the deprecated environment path?
      - Is there a Hog function icon for a legacy env endpoint?
      instructions:
      - text: Get the Hog function icon for environment {environment_id} using the deprecated env path.
        slots:
          environment_id: path.environment_id
      - text: Show the icon of the Hog function environment {environment_id}.
        slots:
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/hog_functions/icons/'].get
  update:
    x-apievangelist-phrasing:
      intent: List icons for Hog functions in an environment
      effect: read
      questions:
      - Which Hog functions in an environment have icons?
      - Can I list all function icons in an environment?
      instructions:
      - text: List icons for Hog functions in environment {environment_id}.
        slots:
          environment_id: path.environment_id
      - text: Show the icon for each function in environment {environment_id}.
        slots:
          environment_id: path.environment_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/environments/{environment_id}/hog_functions/rearrange/'].patch
  update:
    x-apievangelist-phrasing:
      intent: Rearrange Hog functions in an environment
      effect: write
      questions:
      - How do I change the execution order of several Hog functions in an environment?
      - Can I reorder functions in an environment by their IDs?
      instructions:
      - text: Rearrange Hog functions in environment {environment_id} with orders {orders}.
        slots:
          environment_id: path.environment_id
          orders: requestBody.orders
      - text: Set the execution order of functions in environment {environment_id} to {orders}.
        slots:
          environment_id: path.environment_id
          orders: requestBody.orders
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/hog_functions/'].get
  update:
    x-apievangelist-phrasing:
      intent: List Hog functions in a project
      effect: read
      questions:
      - What Hog functions exist in my project?
      - Can I list only the enabled Hog functions in a project?
      instructions:
      - text: List Hog functions in project {project_id}.
        slots:
          project_id: path.project_id
      - text: Show {type} functions in project {project_id} with enabled {enabled}.
        slots:
          type: query.type
          project_id: path.project_id
          enabled: query.enabled
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/hog_functions/'].post
  update:
    x-apievangelist-phrasing:
      intent: Create a Hog function in a project
      effect: write
      questions:
      - How do I add a Hog function to a project?
      - Can I create a transformation Hog function in a project?
      instructions:
      - text: Create Hog function {name} of type {type} in project {project_id}.
        slots:
          name: requestBody.name
          type: requestBody.type
          project_id: path.project_id
      - text: Add a {type} function {name} to project {project_id} with filters {filters}.
        slots:
          type: requestBody.type
          name: requestBody.name
          project_id: path.project_id
          filters: requestBody.filters
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/hog_functions/{id}/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get a Hog function in a project
      effect: read
      questions:
      - What filters and mappings does a Hog function in my project have?
      - Can I look up one project Hog function by its ID?
      instructions:
      - text: Get Hog function {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Show the filters and mappings of function {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}/hog_functions/{id}/'].put
  update:
    x-apievangelist-phrasing:
      intent: Replace a Hog function in a project
      effect: write
      questions:
      - How do I overwrite an existing Hog function in a project?
      - Can I change the source code of a project function?
      instructions:
      - text: Replace Hog function {id} in project {project_id} with code {hog}.
        slots:
          id: path.id
          project_id: path.project_id
          hog: requestBody.hog
      - text: Overwrite function {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}/hog_functions/{id}/'].delete
  update:
    x-apievangelist-phrasing:
      intent: Delete a Hog function in a project
      effect: destructive
      questions:
      - Can I hard delete a Hog function from a project?
      - Is there a permanent remove for a project function?
      instructions:
      - text: Delete Hog function {id} from project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Permanently remove function {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}/hog_functions/{id}/'].patch
  update:
    x-apievangelist-phrasing:
      intent: Update a Hog function in a project
      effect: write
      questions:
      - How do I disable just one Hog function in a project?
      - Can I change the execution order of a project function?
      instructions:
      - text: Set enabled to {enabled} on Hog function {id} in project {project_id}.
        slots:
          enabled: requestBody.enabled
          id: path.id
          project_id: path.project_id
      - text: Move function {id} in project {project_id} to execution order {execution_order}.
        slots:
          id: path.id
          project_id: path.project_id
          execution_order: requestBody.execution_order
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/hog_functions/{id}/enable_backfills/'].post
  update:
    x-apievangelist-phrasing:
      intent: Enable backfills for a Hog function
      effect: write
      questions:
      - How do I turn on backfilling for a Hog function that already has events?
      - Can I enable backfills for a Hog function by its ID?
      instructions:
      - text: Enable backfills for Hog function {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Turn on backfilling on Hog function {id} for project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/hog_functions/{id}/invocations/'].post
  update:
    x-apievangelist-phrasing:
      intent: Test a Hog function with a sample event
      effect: write
      questions:
      - Can I test a Hog function against a sample event before it runs on live events?
      - What does a Hog function return when I invoke it with a test event?
      instructions:
      - text: Invoke Hog function {id} in project {project_id} with test event {clickhouse_event}.
        slots:
          id: path.id
          project_id: path.project_id
          clickhouse_event: requestBody.clickhouse_event
      - text: Test Hog function {id} in project {project_id} using configuration {configuration}.
        slots:
          id: path.id
          project_id: path.project_id
          configuration: requestBody.configuration
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/hog_functions/{id}/logs/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get logs for a Hog function
      effect: read
      questions:
      - Where can I see the execution logs of a Hog function?
      - Can I filter a Hog function's logs by level or search a message?
      instructions:
      - text: Show logs for Hog function {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Get {level} logs for Hog function {id} in project {project_id} matching {search}.
        slots:
          level: query.level
          id: path.id
          project_id: path.project_id
          search: query.search
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/hog_functions/{id}/metrics/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get execution metrics for a Hog function
      effect: read
      questions:
      - How many times has a Hog function executed and failed?
      - Can I break down a Hog function's metrics by kind or name?
      instructions:
      - text: Show metrics for Hog function {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Break down execution metrics for Hog function {id} in project {project_id} by {breakdown_by}.
        slots:
          id: path.id
          project_id: path.project_id
          breakdown_by: query.breakdown_by
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/hog_functions/{id}/metrics/totals/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get total executions for a Hog function
      effect: read
      questions:
      - What is the total number of times a Hog function ran in a date range?
      - Can I get a single total for a Hog function's executions?
      instructions:
      - text: Get total executions for Hog function {id} in project {project_id}.
        slots:
          id: path.id
          project_id: path.project_id
      - text: Sum Hog function {id} executions in project {project_id} from {after} to {before}.
        slots:
          id: path.id
          project_id: path.project_id
          after: query.after
          before: query.before
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/hog_functions/icon/'].get
  update:
    x-apievangelist-phrasing:
      intent: Get the icon of Hog functions
      effect: read
      questions:
      - What is the icon type for a Hog function?
      - Can I fetch the icon used by Hog functions?
      instructions:
      - text: Get the Hog function icon for project {project_id}.
        slots:
          project_id: path.project_id
      - text: Show the icon used by Hog functions in project {project_id}.
        slots:
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/hog_functions/icons/'].get
  update:
    x-apievangelist-phrasing:
      intent: List all Hog function icons
      effect: read
      questions:
      - Which icons are used for all the Hog functions in my project?
      - Can I get every Hog function icon at once?
      instructions:
      - text: List all Hog function icons in project {project_id}.
        slots:
          project_id: path.project_id
      - text: Show every icon used by Hog functions in project {project_id}.
        slots:
          project_id: path.project_id
      method: generated
      generated: '2026-11-16'
- target: $.paths['/api/projects/{project_id}/hog_functions/rearrange/'].patch
  update:
    x-apievangelist-phrasing:
      intent: Rearrange Hog function execution order
      effect: write
      questions:
      - Can I change the order in which Hog functions run?
      - How do I set execution priorities for several Hog functions at once?
      instructions:
      - text: Rearrange Hog functions in project {project_id} with orders {orders}.
        slots:
          project_id: path.project_id
          orders: requestBody.orders
      - text: Set execution order for Hog functions 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.
All 92 tools →

Call it yourself

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