REST API rate limits
To ensure stability and prevent excessive or abusive calls to the server, Buildkite imposes limits on the number of REST API requests that can be made within a minute. These limits apply to the Pipelines REST API as well as the Analytics REST API.
The REST API enforces two general rate limits, and a request is rejected if either is exceeded:
- An organization-level limit shared across all users in the organization.
- A per-user limit. The default per-user limit is 50 requests per minute.
Deep pages of the organization builds list are also subject to an additional deep builds list rate limit. Requests to these pages are rejected if any applicable limit is exceeded.
Organization rate limit
Buildkite imposes a rate limit of 200 requests per minute for each organization. This is the cumulative limit of all API requests made by users in an organization. This default can vary by plan. See Limits for the values that apply to your organization.
Requests authenticated through the remote Buildkite MCP server's interactive OAuth flow use a separate per-user quota.
Requests from the local MCP server or the API token pass-through endpoint that use personal API tokens or tokens issued by your token exchange application count toward standard REST API limits.
Per-user rate limits
In addition to the organization-level limit, the REST API enforces a per-user rate limit on requests. This limit prevents a single user from consuming the entire organization's API quota.
The per-user limit is evaluated for the authenticated user associated with the API access token. The default per-user limit is 50 requests per minute.
A request counts towards both the per-user limit and the organization-level limit. The request is rejected with a 429 status code if either limit is exceeded. Check the RateLimit-User-Remaining response header to monitor your per-user quota. See Exceeding the rate limit for details.
Organization administrators can view the per-user limits that apply to their organization on the Service Quotas page, accessible from Settings > Quotas in the Buildkite interface.
Checking rate limit details
The general rate limit headers track the organization-level limit and the per-user limit independently. Deep pages of the organization builds list also include a separate set of headers for the deep builds list rate limit.
The RateLimit-* headers track the organization's shared quota, while the RateLimit-User-* headers track the quota for the authenticated user making the request. The RateLimit-DeepBuildsList-* headers track the organization's deep builds list quota. A 429 response is returned if any applicable limit is exceeded.
Organization-level headers:
-
RateLimit-Scope: The scope of the organization-level rate limit. Set torest. -
RateLimit-Remaining: The remaining requests within the current organization time window. -
RateLimit-Limit: The organization rate limit. -
RateLimit-Reset: The number of seconds remaining until the organization time window resets.
Per-user headers:
-
RateLimit-User-Scope: The scope of the per-user rate limit. Set torest_user. -
RateLimit-User-Remaining: The remaining requests for the authenticated user within the current time window. -
RateLimit-User-Limit: The per-user rate limit. -
RateLimit-User-Reset: The number of seconds remaining until the per-user time window resets.
Deep builds list headers:
Requests to the organization builds list where page × per_page is greater than 1,000 include the following headers:
-
RateLimit-DeepBuildsList-Scope: The scope of the deep builds list rate limit. Set torest_deep_builds_list. -
RateLimit-DeepBuildsList-Remaining: The remaining requests within the current deep builds list time window. -
RateLimit-DeepBuildsList-Limit: The deep builds list rate limit. -
RateLimit-DeepBuildsList-Reset: The number of seconds remaining until the deep builds list time window resets.
For example, the following response headers show an authenticated user with 35 requests remaining against their per-user limit of 50. The organization has 80 requests remaining against its limit of 200, reflecting usage from multiple users across the organization:
RateLimit-User-Scope: rest_user
RateLimit-User-Remaining: 35
RateLimit-User-Limit: 50
RateLimit-User-Reset: 42
RateLimit-Scope: rest
RateLimit-Remaining: 80
RateLimit-Limit: 200
RateLimit-Reset: 42
Using the rate limit API
You can also programmatically query your organization's rate limit status using the dedicated rate limit endpoint. Requests to this endpoint don't count towards your organization's REST API rate limit or your per-user rate limit. See the rate limit endpoint documentation for details on retrieving rate limit information for REST, GraphQL, and remote MCP server usage, including your own per-user REST and remote MCP server status.
Exceeding the rate limit
When an applicable rate limit is exceeded, requests return a 429 HTTP status code. Before retrying, wait for the number of seconds specified by the matching RateLimit-Reset, RateLimit-User-Reset, or RateLimit-DeepBuildsList-Reset header.
The 429 response body includes additional context about which limit was exceeded:
{
"message": "You have exceeded your API rate limit. Please wait 42 seconds before making more requests.",
"scope": "rest_user",
"limit": 50,
"current": 55,
"reset": 42
}
The scope field indicates which limit was exceeded. For example, rest for the organization limit, rest_user for the per-user limit, or rest_deep_builds_list for the deep builds list rate limit.
When a limit is reached, the matching headers also include a RateLimit-Warning (organization-level), RateLimit-User-Warning (per-user), or RateLimit-DeepBuildsList-Warning (deep builds list) header set to You have exceeded your API rate limit.. These warning headers are only present while the relevant limit is exhausted, and are omitted again once requests are available within the time window.
Best practices to avoid rate limits
To ensure the smooth functioning and efficient use of the API, design your client application with the following best practices in mind:
- Implement appropriate pagination techniques when querying data.
- Use caching strategies to avoid excessive calls to the Buildkite API.
- Regulate the rate of your requests to ensure smoother distribution by using strategies such as queues or scheduling API calls at appropriate intervals.
- Use metadata about your API usage, including rate limit status, to manage behavior dynamically.
- Consider all users making requests across your organization when designing your rate-limiting solution.
- Be aware of retries, errors, and loops when designing your application, as they can easily accumulate and use up allocated quotas.