PostHog / Analytics

PostHog capture and feature-flag API

Capture single or batched events and evaluate feature flags remotely through the public project-token runtime API. The complete surface has only the three documented POST endpoints; requests can write analytics data or consume flag quota, so Pontx Hub never proxies, caches, or executes them and callers connect directly through the local SDK/CLI after preview and confirmation.

Provider
PostHog
Authentication
API Key
Request previewThis endpoint is not available for interactive debugging
Task
Open selected endpoint

Authentication

Set up credentials and authorization for this browser session before debugging the request.

  1. Sign in to the correct PostHog Cloud region or self-hosted instance and select the target project.

  2. Copy the Project Token from Project settings. Do not substitute the more privileged Personal API Key.

  3. Set POSTHOG_PROJECT_TOKEN only in your local environment and make sure the request host matches the project's region.

POST /i/v0/e/

Capture one event

Submits one event. Event, distinct_id, and project token are required; HTTP 200 only means the service received a well-formed request, not that the event will be ingested. It can update person or group data, so Hub does not proxy it.