cURL
curl --request POST \ --url http://0.0.0.0:8000/batch/ \ --header 'Content-Type: application/json' \ --data ' { "api_key": "<string>", "historical_migration": false, "batch": [ { "event": "<string>", "distinct_id": "<string>", "properties": {}, "timestamp": "2023-11-07T05:31:56Z", "uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a" } ] } '
{ "status": 1 }
PostHog-compatible batch capture endpoint.
Resolves the api_key in the JSON body to an organization, builds ClickHouse rows from valid events, and inserts them into events. Invalid events are ignored and still return 200 for compatibility.
api_key
events
200
PostHog-compatible batch ingestion payload.
1
Show child attributes
Successful Response
Was this page helpful?