OPENAPI / COMPONENTS / SCHEMAS
Capture a batch of events
BatchCaptureRequestSubmits 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.
object3properties
api_keystringrequiredPostHog project token injected only from caller-local configuration.
batchBatchEventrequiredEvents to capture; the whole request body must remain under the default 20 MB limit.
historical_migrationbooleanTrue for historical migrations; omit or set false for realtime events.