Request payload limit with AWS API Gateway

Suhail Gupta picture Suhail Gupta · Sep 22, 2017 · Viewed 27.2k times · Source

What is the request-payload limit with AWS API-Gateway?

I need to send a JSON payload with base64 encoded files and some other parameters to API Gateway, that will then pass on the payload to AWS Lambda.

I could not find AWS documentation regarding this.

Answer

Vijayanath Viswanathan picture Vijayanath Viswanathan · Sep 22, 2017

Maximum payload to API gateway is 10 MB and maximum payload for Lambda is 6 MB, which cannot be increased.

Please see API gateway payload limits here

Please see Lambda payload limits here

But there is an alternative way (a work around) to achieve the same by uploading data to an S3 bucket if your size is more that 10 MB. Please read the below article for details (Unofficial document):

https://sookocheff.com/post/api/uploading-large-payloads-through-api-gateway/