SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

Maximum Batch Size Limits for Segment HTTP API Calls

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.

 

Have more questions? Submit a request
Powered by Zendesk