Skip to navigation

Rate limits

The limits that protect your API from excessive traffic, and how to respond when a limit is reached.
View as Markdown

Rate limits protect your API from agents that call it far more often than any genuine task requires. Each tool you publish accepts a defined number of calls per minute, and requests beyond that number are refused by Mitu before they reach your API, so a misbehaving agent can never overwhelm the systems that serve your customers.

Tool limits

Each tool accepts 60 calls per minute by default, and its limit is shown on the tool in the Mitu dashboard. When an agent exceeds it, Mitu responds to the agent directly with a 429 status, and the request never reaches your API.

{
"status": 429,
"detail": "Rate limit of 60/min exceeded for this endpoint"
}

A well designed agent waits and retries. If genuine customer activity regularly reaches the limit on a tool, contact Mitu to have it raised.

Responding to a limit

1

Stop and wait

When a request is refused with a 429 status, stop sending further requests to the same operation rather than retrying immediately.

2

Retry with increasing delays

Retry after a short delay, and lengthen the delay each time the limit is reached again. Retrying immediately in a loop only extends the time before requests succeed.

3

Review the pattern

If a limit is reached repeatedly, review whether the traffic reflects genuine demand, in which case the limit can be raised, or an agent behaving incorrectly, in which case your instructions may need to guide it better.

Rate limit practices

  1. Design for limits from the outset
    Assume any request can be refused with a 429 status, and handle it gracefully wherever your systems or agents call Mitu.
  2. Reduce unnecessary calls
    Guide agents through your instructions to avoid repeating the same request, for example by reusing availability already retrieved.
  3. Plan for growth
    If you expect a significant increase in traffic, contact Mitu in advance so limits can be set to match.

Rate limits keep your API stable under any level of agent traffic, so a surge in demand or a single misbehaving agent never affects the service your customers receive.