Home / Basics / Highnote API

API Rate Limiting

Rate limits

By default, the test environment has 50% of the rate limit of the live environment.

To maintain optimal performance, an API rate limit limits the number of requests a client can make within a specific time frame. The Highnote platform has different rate limit types:

  • Request
  • Complexity

Rate limiting is based on which type you hit first. Each type has a specific rate limit for each Auth/API type:

Request rate limits

Auth/API TypeLimitNote
API key200 requests per 10 secondsAggregate limit across all API keys assigned to an org
Client token20 requests per 10 seconds per user/subject
REST API200 requests per 10 seconds

Complexity rate limits

Auth/API TypeLimitNote
API key5,000 complexity per 10 secondsAggregate limit across all API keys assigned to an org
Client token5,000 complexity per 10 seconds per user/subject
REST APIN/A

For more information on calculating request complexity, see Request Complexity.

Rate limited responses

When an API request is rate limited, Highnote API returns a 429 TOO MANY REQUESTS status code.

If you exceed the API rate limit, the cost field is not returned in your API response. Instead, the Highnote API uses a retryAfter field to show how long to wait before retrying.

The following example represents a response of a rate-limited API request:

Rate Limited Response Example

Best practices

Refer to the following best practices to avoid hitting rate limits:

Provide Feedback

Was this content helpful?