Question
What is the maximum batch size allowed in a Segment HTTP API call, and what happens if these limits are exceeded?
Product
Twilio Segment
Environment
Segment Console
Answer
Segment enforces strict batch size limits for Application Programming Interface (API) calls to ensure reliable and high-performance processing:
- For normal API requests, the maximum payload size is 32 KB.
- For the batch API endpoint, the maximum payload size is 500 KB per request, with a limit of 32 KB per individual event within that batch.
Additional Information
Best Practices
- Always check the size of your batch payload and individual events before sending.
- If you receive a
400 Bad Request, review your request size and adjust accordingly.