Amazon API Gateway Limits and Pricing
API Gateway Limits
Unless noted otherwise, the limits can be increased upon request. To request a limit increase, contact the AWS Support Center.
API Gateway Limits for Configuring and Running an API
The following limits apply to configuring and running an API in Amazon API Gateway.
| Resource or Operation | Default Limit | Can Be Increased |
|---|---|---|
| Throttle limits per account | 1000 request per second (rps) with a burst limit of 2000 rps. | Yes |
| APIs per account | 60 | Yes |
| API keys per account | 500 | Yes |
| Client certificates per account | 60 | Yes |
| Custom authorizers per API | 10 | Yes, per |
| Documentation parts per API | 2000 | Yes |
| Resources per API | 300 | Yes |
| Stages per API | 10 | Yes |
| Usage plans per account | 300 | Yes |
| Usage plans per API key | 10 | Yes |
| API caching TTL | 300 seconds by default and configurable between 0 and 3600 by an API owner. | Not for the upper bound (3600) |
| Integration timeout | 30 seconds for all integration types, including Lambda, Lambda proxy, HTTP, HTTP proxy, and AWS integrations. | No |
| Payload size | 10 MB | No |
Number of iterations in a #foreach ... #end loop in mapping
templates | 1000 | No |
| ARN length of a method with authorization | 1600 bytes | No |
All of the per API limits can only be increased on specific APIs.
When authorization is enabled on a method, the maximum length of the method's ARN (e.g.,
arn:aws:execute-api:{region-id}:{account-id}:{api-id}/{stage-id}/{method}/{resource}/{path})
is 1600 bytes. The path parameter values, the size of which are determined at run time, can cause the
ARN length to exceed the limit. When this happens, the API client will receive a 414 Request URI too long response.
API Gateway Limits for Creating, Deploying and Managing an API
The following fixed limits apply to creating, deploying, and managing an API in API Gateway, using the AWS CLI, the API Gateway console, or the API Gateway REST API and its SDKs. These limits cannot be increased.
| Action | Default Limit | Can Be Increased |
|---|---|---|
| CreateRestApi | 2 requests per minute (rpm) per account. | No |
| ImportRestApi | 2 requests per minute per account | No |
| PutRestApi | 60 requests per minute per account | No |
| DeleteRestApi | 2 requests per minute per account | No |
| CreateDeployment | 3 requests per minute per account | No |
| UpdateAccount | 3 requests per minute per account | No |
| GetResources | 150 requests per minute per account | No |
| CreateResource | 300 requests per minute per account | No |
| DeleteResource | 300 requests per minute per account | No |
| CreateDomainName | 2 requests per minute per account | No |
| UpdateUsagePlan | 3 requests per minute per account | No |
| Other operations | No limit up to the total account limit. | No |
| Total operations | 10 request per second (rps) with a burst limit of 40 rps. | No |

