PostHogPostHog capture and feature-flag API
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.
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.
Request
- operationId
captureEvent- Server
https://us.i.posthog.com- Authentication
- projectToken
Request parameters
No URL, query, or header parameters.
Request body
CaptureEventRequestrequired
Content-Type: application/json
Properties: api_keydistinct_ideventpropertiestimestamp
Responses
200
ReceiptResponseapplication/json
Status returned when the service receives a request; HTTP 200 does not guarantee eventual event ingestion.
Properties: status
400
ApiErrorapplication/json
Caller-facing error detail.
Properties: attrcodedetailtype
401
ApiErrorapplication/json
Caller-facing error detail.
Properties: attrcodedetailtype
{
"status": "Ok"
}