Ad-Hoc Rate Limit ChangesNote: Alvys reserves the right to adjust rate limits as necessary to protect our system. Although changes are infrequent, we aim to provide prior notice whenever possible.
Global Rate Limits
These limits apply to all API endpoints, with some endpoints having more restrictive limits. Refer to the “Endpoint-Level Rate Limits” section for specific details.- Per token: Each API access token may make up to 10 API requests per second
- Per organization: Each organization may make up to 50 API requests per second
Endpoint-Level Rate Limits
Some endpoints have specific rate limits to manage traffic and ensure fair usage. These limits override the global rate limits where specified. For endpoints without specific rules, default rate limits apply as outlined below. The table provides details on rate limits, periods, responses, and actions taken when limits are exceeded.Key Definitions
- Rate Limit: The maximum number of requests allowed within the specified period.
- Period: The duration in which the rate limit applies. For example, “1 minute” means the limit resets every minute.
- Response: The HTTP status code returned when the rate limit is exceeded.
- Action: The action taken when the rate limit is exceeded, typically resulting in blocking further requests until the period resets.
Default Rate Limiting Rules
For all endpoints without specific rate limits defined, the following default rate limiting rules apply:- Rule Name: Default Rate Limiting
- URL Path:
/api/* - Threshold: 10 requests per minute
- Burst: 1 request in the first second
- Action: Block
- Period: 3 minutes
- Response: 429 Too Many Requests
- Custom Response: Include
Retry-After: 60header
Handling Rate Limits
When an application exceeds the specified rate limit, the API will respond with a 429 Too Many Requests status code. The response includes aRetry-After header, indicating the time in seconds before the client can retry the request. Respecting this header is essential to avoid further rate limiting and ensure continued access to the API.
Example Response Header
You should respect the Retry-After header to properly delay further requests and avoid triggering additional rate limits. Adhering to these rate limits helps maintain the stability and reliability of Alvys API services. For further inquiries or support, please contact our technical support team.