Rate Limiting

API Rate Limits are in place to protect Cody AI from API traffic spikes that could put our services at risk. We therefore measure the amount of requests sent to the API in order to throttle these when they surpass the amount allowed. We will respond with '429 Too Many Requests' and the following headers:

Header Explanation
x-ratelimit-limit Maximum number of requests allowed per minute.
x-ratelimit-remaining Number of requests left in the current time.
x-ratelimit-reset Time when the number of requests will be reset to the maximum limit. Shown as UNIX timestamp.
retry-after Number of seconds to wait before retrying your request.

You can view your account rate limits on your account API Keys page.