Request payload limit with AWS API Gateway
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):
The API Gateway has a request size limit of 10MB.
The more important limit in your scenario is the lambda size limit which is only 6 MB.
Related videos on Youtube
Suhail Gupta about 2 years
What is the request-payload limit with AWS API-Gateway?
I need to send a JSON payload with
base64encoded 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.
Suhail Gupta about 5 yearsAm looking to read the official documentation. Google search gives out different answers to same question
Vijayanath Viswanathan about 5 years@SuhailGupta there will not be an official documentation for this as this will be a work aorund to solve existing size limitage.
Suhail Gupta about 5 yearsWhat does it mean?
Vijayanath Viswanathan about 5 years@SuhailGupta If you are looking for official documents for limit usage then I have updated the answer. The solution document link I have provided in just a work around to acheive size limitage problem in a different way, which is unofficial document
Mojimi about 3 yearsThe most common solution is to have a api route with a lambda that generates a presigned s3 upload link. Then hook a lambda as a s3 event to read that file as a payload/json