Analytics
PostHog (HMAC-SHA256) Webhooks
PostHog's HTTP Webhook destination with "Signature format" set to "HMAC-SHA256 of the body". Use the main PostHog entry unless you already chose this format in PostHog.
Connecting PostHog (HMAC-SHA256) to Hookbase
Create a source in Hookbase first — it gives you an ingest URL to paste into PostHog (HMAC-SHA256). Then:
- 1In PostHog, go to Data pipelines → Destinations → New destination and choose "HTTP Webhook"
- 2Paste your Hookbase ingest URL into "Webhook URL" and leave the method on POST
- 3Leave the default JSON body ({ "event": "{event}", "person": "{person}" }) so Hookbase can read the event name, or keep an "event" key in your own body
- 4Copy the signing secret Hookbase generated for this source into "Signing secret", and set "Signature format" to "HMAC-SHA256 of the body"
- 5Set the filters for which events to send, then click "Test function" and save
- 6Hookbase verifies the X-Hub-Signature-256 header and deduplicates PostHog's retries by webhook-id. This format signs no timestamp, so prefer the Standard Webhooks entry, which also rejects replayed requests
Signature verification
Set the source's provider to posthog-hmac and paste the signing secret. Every request is checked before the event is stored, and anything that fails is rejected rather than quietly recorded.
- Algorithm
- HMAC-SHA256 of the raw body, hex-encoded, sent as "sha256=<hex>"
- Header
- X-Hub-Signature-256
- Where to find the secret
- PostHog never generates the secret: you type it into the destination's "Signing secret" field (at least 24 characters). Hookbase generates one for you to paste there, with "Signature format" set to "HMAC-SHA256 of the body".
PostHog (HMAC-SHA256) event types
7 of the events people route most often. Hookbase accepts every event PostHog (HMAC-SHA256) sends, whether or not it is listed here.
$pageview
A page was viewed (captured by the web SDK).
$pageleave
A user left a page.
$autocapture
A click, form submission or input change was autocaptured.
$identify
An anonymous user was identified (posthog.identify()).
$exception
An exception was captured by error tracking.
$feature_flag_called
A feature flag was evaluated for a user.
survey sent
A survey response was submitted.
What a PostHog (HMAC-SHA256) webhook looks like
A $pageview payload. Hookbase stores the raw body exactly as it arrived, so this is also what you get back on a replay.
{
"event": {
"uuid": "0193d1a2-6b7c-7e8f-9a0b-1c2d3e4f5a6b",
"event": "$pageview",
"distinct_id": "user_8f2c1d",
"properties": {
"$current_url": "https://example.com/pricing",
"$pathname": "/pricing",
"$host": "example.com",
"$browser": "Chrome",
"$os": "Mac OS X",
"$device_type": "Desktop",
"$lib": "web"
},
"timestamp": "2026-12-01T17:04:05.123Z",
"url": "https://us.posthog.com/project/12345/events/0193d1a2-6b7c-7e8f-9a0b-1c2d3e4f5a6b/2026-12-01T17:04:05.123Z"
},
"person": {
"id": "0193d1a0-1111-7a2b-8c3d-4e5f6a7b8c9d",
"name": "jane@example.com",
"url": "https://us.posthog.com/project/12345/person/user_8f2c1d",
"properties": {
"email": "jane@example.com",
"name": "Jane Doe"
}
}
}Start receiving PostHog (HMAC-SHA256) webhooks
Create a source, paste the URL into PostHog (HMAC-SHA256), and watch the first event arrive. The free tier includes 1,000 events a month.
Get Started Free