Batch requests
documentedSend multiple identify/track/page/screen/group/alias requests in a single HTTP call.
POST /v1/batchBatch operationsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://cdp.customer.io/v1/batch" \
-X POST \
-u "{{CUSTOMER_API_KEY}}:" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"batch": [{"type": "{{$type}}", "userId": "{{$user_id}}", "traits": {"email": "{{$email}}", "name": "{{$name}}"}}], "context": {"ip": "{{$ip}}", "locale": "{{$locale}}", "userAgent": "{{$userAgent}}"}, "integrations": {"All": true}}'