Skip to main content
Version: v2.0

What are the API rate limits?

Rate limits apply to Agenta Cloud. If you self-host the open-source edition, Agenta does not enforce any rate limits; capacity is set by your own infrastructure. In self-hosted Enterprise deployments, limits are configured per deployment.

Agenta Cloud limits requests per organization. Limits vary by plan and endpoint type.

Each limit has two values. Burst is the number of requests you can send back to back when you have not made requests recently. Refill is the number of requests added back to your budget per minute, which sets the sustained rate. Each endpoint type has its own budget, so using up one does not affect the others.

Cells show burst / refill per minute.

Endpoint typeExampleHobbyProBusinessEnterprise
Configuration fetching and trace ingestionPOST */retrieve, POST /otlp/v1/traces1,200 / 1,2003,600 / 3,60036,000 / 36,000Custom
Trace queries and analyticsPOST /tracing/spans/query, POST /tracing/spans/analytics120 / 1180 / 11,800 / 1Custom
AI servicesPOST /ai/services/tools/call10 / 3030 / 90300 / 900Custom
All other endpointsGeneral API calls480 / 4801,440 / 1,4403,600 / 3,600Custom

Rate limit response

When you exceed the rate limit, the API returns 429 Too Many Requests.

{
"detail": "Rate limit exceeded. Please retry after 5 seconds."
}

The response includes headers that help you back off:

HeaderDescription
X-RateLimit-LimitMaximum requests allowed (burst capacity)
X-RateLimit-RemainingRemaining requests in the current window
Retry-AfterSeconds to wait before retrying. Only returned on 429 responses.

Successful responses also include X-RateLimit-Remaining.