posthog-webhooks-events

Featured

Implement PostHog webhook destinations, Action-triggered notifications, and event querying via the Events API and HogQL. Trigger: "posthog webhook", "posthog events API", "posthog actions", "posthog notifications", "posthog event query", "posthog HogQL".

AI & Automation 2,359 stars 334 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# PostHog Webhooks & Events ## Overview PostHog sends webhooks via its CDP (Customer Data Platform) Destinations feature. You configure a Destination that fires when matching events are captured, sending an HTTP POST to your endpoint. This skill covers webhook destination setup, receiving and processing webhook payloads, querying events via the API, and using HogQL for custom event analysis. ## Prerequisites - PostHog project with personal API key (`phx_...`) - HTTPS endpoint to receive webhooks - Events being captured in PostHog ## Instructions ### Step 1: Create a Webhook Destination via API ```bash set -euo pipefail # Create a webhook destination that fires on specific events curl -X POST "https://app.posthog.com/api/projects/$POSTHOG_PROJECT_ID/pipeline_destinations/" \ -H "Authorization: Bearer $POSTHOG_PERSONAL_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Signup Notifications", "description": "Send webhook when user signs up", "config": { "url": "https://your-app.com/webhooks/posthog", "method": "POST", "headers": { "X-Webhook-Secret": "your-webhook-secret" }, "body": { "event": "{event}", "distinct_id": "{distinct_id}", "person": "{person}", "properties": "{properties}", "timestamp": "{timestamp}" } }, "filters": { "events": [ {"id": "user_signed_up", "type": "events"}, {"id": "subscription_started", "type": "even...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
8 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category