PostHog Hog Functions API

The hog_functions API from PostHog — 20 operation(s) for hog_functions.

Operations 28

GET /api/environments/{environment_id}/hog_functions/ Environments hog functions list #
POST /api/environments/{environment_id}/hog_functions/ Environments hog functions create #
GET /api/environments/{environment_id}/hog_functions/{id}/ Environments hog functions retrieve #
PUT /api/environments/{environment_id}/hog_functions/{id}/ Environments hog functions update #
PATCH /api/environments/{environment_id}/hog_functions/{id}/ Environments hog functions partial update #
DELETE /api/environments/{environment_id}/hog_functions/{id}/ Environments hog functions destroy #
POST /api/environments/{environment_id}/hog_functions/{id}/enable_backfills/ Environments hog functions enable backfills create #
POST /api/environments/{environment_id}/hog_functions/{id}/invocations/ Environments hog functions invocations create #
GET /api/environments/{environment_id}/hog_functions/{id}/logs/ Environments hog functions logs retrieve #
GET /api/environments/{environment_id}/hog_functions/{id}/metrics/ Environments hog functions metrics retrieve #
GET /api/environments/{environment_id}/hog_functions/{id}/metrics/totals/ Environments hog functions metrics totals retrieve #
GET /api/environments/{environment_id}/hog_functions/icon/ Environments hog functions icon retrieve #
GET /api/environments/{environment_id}/hog_functions/icons/ Environments hog functions icons retrieve #
PATCH /api/environments/{environment_id}/hog_functions/rearrange/ Environments hog functions rearrange partial update #
GET /api/projects/{project_id}/hog_functions/ Hog functions list #
POST /api/projects/{project_id}/hog_functions/ Hog functions create #
GET /api/projects/{project_id}/hog_functions/{id}/ Hog functions retrieve #
PUT /api/projects/{project_id}/hog_functions/{id}/ Hog functions update #
PATCH /api/projects/{project_id}/hog_functions/{id}/ Hog functions partial update #
DELETE /api/projects/{project_id}/hog_functions/{id}/ Hog functions destroy #
POST /api/projects/{project_id}/hog_functions/{id}/enable_backfills/ Hog functions enable backfills create #
POST /api/projects/{project_id}/hog_functions/{id}/invocations/ Hog functions invocations create #
GET /api/projects/{project_id}/hog_functions/{id}/logs/ Hog functions logs retrieve #
GET /api/projects/{project_id}/hog_functions/{id}/metrics/ Hog functions metrics retrieve #
GET /api/projects/{project_id}/hog_functions/{id}/metrics/totals/ Hog functions metrics totals retrieve #
GET /api/projects/{project_id}/hog_functions/icon/ Hog functions icon retrieve #
GET /api/projects/{project_id}/hog_functions/icons/ Hog functions icons retrieve #
PATCH /api/projects/{project_id}/hog_functions/rearrange/ Hog functions rearrange partial update #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/posthog-hog-functions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

posthog-hog-functions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PostHog Hog Functions API
  version: 1.0.0
  description: ''
tags:


# --- truncated at 32 KB (59 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/posthog/refs/heads/main/openapi/posthog-hog-functions-api-openapi.yml