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.
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for PostHog Event Filter API
version: 1.0.0
extends: openapi/posthog-event-filter-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: 4
- target: $.paths['/api/environments/{project_id}/event_filter/'].get
update:
x-apievangelist-phrasing:
intent: Get the event filter config
effect: read
questions:
- What event filter is my team using?
- Is an event filter config already set up for this project?
instructions:
- text: Get the event filter config for project {project_id}.
slots:
project_id: path.project_id
- text: Show the event filter settings in project {project_id}.
slots:
project_id: path.project_id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/environments/{project_id}/event_filter/'].post
update:
x-apievangelist-phrasing:
intent: Create or update the event filter
effect: write
questions:
- How do I drop events that match a condition?
- Can I test an event filter against sample events before going live?
instructions:
- text: Create event filter {id} in project {project_id} with config {filter_tree}.
slots:
id: requestBody.id
project_id: path.project_id
filter_tree: requestBody.filter_tree
- text: Set up event filter {id} in project {project_id} in mode {mode}.
slots:
id: requestBody.id
project_id: path.project_id
mode: requestBody.mode
method: generated
generated: '2026-11-16'
- target: $.paths['/api/environments/{project_id}/event_filter/metrics/'].get
update:
x-apievangelist-phrasing:
intent: Get event filter time-series metrics
effect: read
questions:
- How many events has my event filter dropped over time?
- Can I see event filter performance as a time series?
instructions:
- text: Get event filter metrics for project {project_id}.
slots:
project_id: path.project_id
- text: Show how the event filter in project {project_id} has performed over time.
slots:
project_id: path.project_id
method: generated
generated: '2026-11-16'
- target: $.paths['/api/environments/{project_id}/event_filter/metrics/totals/'].get
update:
x-apievangelist-phrasing:
intent: Get aggregate event filter metric totals
effect: read
questions:
- What are the total counts for my event filter, summed up rather than over time?
- Can I see one aggregate number for how much my event filter has handled?
- Which overall totals does the event filter report for a project?
instructions:
- text: Get the aggregate event filter totals for project {project_id}.
slots:
project_id: path.project_id
- text: Show summed-up event filter metric totals, not a time series, for project {project_id}.
slots:
project_id: path.project_id
method: generated
generated: '2026-11-16'
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.