Skip to main content
The Laravel Cloud API limits how many requests you can make in a given period of time. Rate limits keep the API fast and reliable for everyone, and they protect your organization from runaway scripts and integrations. Cloud tracks rate limits per organization. Every API token in your organization, including tokens used by the Laravel Cloud CLI, shares the same limits. Cloud tracks requests that use an invalid API token by IP address instead.

Limits

Every API request counts toward the general limit. Some endpoints also have a stricter limit of their own, and requests to those endpoints count toward both limits.

Rate limit headers

Cloud includes the following headers in API responses so you can track your usage:

Exceeding a limit

When you exceed a rate limit, Cloud rejects the request with a 429 Too Many Requests status code:
Wait for the number of seconds in the Retry-After header before you send another request. Cloud rejects any request to the same limit that you send before then.
Cache data that rarely changes, such as application and environment details, instead of requesting it on every run. If you poll metrics, remember that every metrics endpoint shares a single limit of 30 requests per minute across your organization. Divide that budget between the resources you poll. For example, polling one resource every 2 seconds uses the entire limit, while polling three resources every 10 seconds each uses only 18.