[SalesForce] RestContext requestBody size limit

According to what i found, HttpPost doesn't have size limit, but usually limited by the server to request is sent to (https://serverfault.com/questions/151090/is-there-a-maximum-size-for-content-of-an-http-post).

Is there a size limit for RestContext requestBody (HttpPost) in salesforce?
I couldn't find any documentation on limitations regarding HttpPost in salesforce.


Best Answer

AFAIK it's 6 MB for synchronous Apex or 12 MB for asynchronous Apex.

More info here