Skip to main content
POST
/
batch
Capture Batch
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
}

Body

application/json

PostHog-compatible batch ingestion payload.

api_key
string
required
Minimum string length: 1
historical_migration
boolean
default:false
batch
BatchEvent · object[]

Response

Successful Response

status
integer
default:1