PostHog/captureBatch

Loading the complete reference automatically…

PostHogPostHog capture and feature-flag API

POST/batch/

Capture a batch of events

Submits multiple events in one request. The whole body must be below the default 20 MB limit; historical_migration is only for migrations. It writes upstream 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
captureBatch
Server
https://us.i.posthog.com
Authentication
projectToken

Request parameters

No URL, query, or header parameters.

Request body

BatchCaptureRequestrequired

Content-Type: application/json

Properties: api_keybatchhistorical_migration

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"
}