Rate Limits, Timeouts and Retries
Rate limits
The rate limit is tied to your IP address and allows 1,000 requests per minute. This limit applies separately to each environment—sandbox and live. If you exceed this limit, you'll receive responses with an HTTP 429 status code and a relevant error message.
Note: If you're using Midaz open source, you have the flexibility to adjust the rate limit parameters directly from the Helm file.
Retries
API requests may fail due to various reasons such as network issues, API rate limits, timeouts, or service incidents. As a best practice, we recommend incorporating a request retry mechanism with the following attributes:
Only retry requests that failed with the following HTTP status codes:
5xx (Server Errors)
429 (Rate Limits)
408 (Timeouts)
Implement retries with exponential backoff and/or jitter.
Ensure to use an idempotency key where applicable.
Timeouts
All of our APIs are designed with timeouts to ensure rapid failure and allow for request retries. It's also good practice to set similar timeouts on the client side.
For the SaaS model, our APIs enforce a timeout of 29 seconds.
Note: If you're using Midaz open source, you have the flexibility to adjust the timeout parameters directly from the Helm file.
Last updated