function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JeriMorrisJeriMorris 

HTTP Callout Request or Response Size Limits

Is there a limit to the size of either a request or a response when my Apex code makes an HTTP callout? If there is, what is it?

 

I know that I can only make 10 callouts per transaction -- I'm looking for the size of each individual callout.

Best Answer chosen by Admin (Salesforce Developers) 
BritishBoyinDCBritishBoyinDC

I did a search for httprequest in the apex docs, and it says the getbody can be 3mb...

All Answers

Shashikant SharmaShashikant Sharma

For a single req 10 seconds,

if you have invoked 10 then 120 seconds for all, that does not men 10 sec for each, but toal 120 sec for all.

JeriMorrisJeriMorris

Thanks for the response, but you're talking about timeouts. I'm talking about size limits. How big can a single request or response be?

 

- Jeri

BritishBoyinDCBritishBoyinDC

I did a search for httprequest in the apex docs, and it says the getbody can be 3mb...

This was selected as the best answer