Authentication and security
For optimal security, all apps must use HubSpot’s OAuth protocol directly, or use your app’s static auth token if you’re building an app installed in a single account. Apps are responsible for storing time-to-live (TTL) data and refreshing user access tokens in accordance with this protocol. When an access token is generated, it will include anexpires_in parameter indicating how long it can be used to make API calls before refreshing. Unauthorized (401) requests are not a valid indicator that a new access token must be retrieved.
Checking API usage
Apps built on v2025.2 of the developer platform
To view API usage for your apps built on the new developer platform:- In your HubSpot account, navigate to Development in the main navigation bar.
- In the left sidebar menu, navigate to Monitoring > API call usage.
- Your API usage across all your apps will be listed at the top of the page. You can also review usage for the apps you built in your specific account, along with any third-party apps you’ve installed.
Legacy apps
To view API usage for a legacy private app:- In your HubSpot account, navigate to Development in the main navigation bar.
- In the left sidebar menu, navigate to Legacy apps.
- Click the name of the private app.
- On the app details page, click the Logs tab.
- Review the API calls listed in the table. You can also use the search bar, filters, and date pickers to further refine the displayed API calls.
- In your HubSpot account, navigate to Development in the main navigation bar.
- In the left sidebar menu, navigate to Monitoring, then select Logs.
- At the top, select the name of the app.
- Use the tabs to view different types of requests being made to or from the app. While viewing these logs, you can click an individual request to view more information.
Rate limits
The number of calls your app can make is based on your account subscription in the account it’s installed in, and whether you’ve purchased the API limit increase. You can keep the following general limits in mind when making requests to HubSpot’s API endpoints, however some APIs may also have more specific limits listed on their relevant API guide (e.g., the exports API).Publicly distributed OAuth app limits
For legacy public apps and 2025.2 apps with OAuth authentication distributed via the HubSpot marketplace, each HubSpot account that installs your app is limited to 110 requests every 10 seconds. This excludes the CRM Search API.Privately distributed app limits
The limits in the table below apply to legacy private apps, as well as 2025.2 apps installed with a distribution set toprivate. Note that for these privately distributed app types:
- The burst limit, detailed in the Per 10 seconds column below, applies individually per app.
- The daily limit, detailed in the Per day column below, is shared across all apps within the same HubSpot account.
| Product Tier | Per 10 Seconds | Per Day | |
|---|---|---|---|
| Privately distributed apps | (Any Hub) Free and Starter | 100 / app | 250,000 / account |
| (Any Hub) Professional | 190 / app | 625,000 / account | |
| (Any Hub) Enterprise | 190 / app | 1,000,000 / account | |
| Privately distributed apps with API Limit Increase | (Any Hub) Free, Starter, Professional, and Enterprise | 250 / app | 1,000,000 / account on top of your base subscription, for each limit increase. You can purchase a maximum of two API limit increases. |
Exemptions
Some APIs are exempt from the 10-second and daily limits (e.g., certain marketing single send API and source code API endpoints). However, you should note the following for the exempt APIs:- API requests that are exempt from daily or secondary limits will not be logged in HubSpot. If you want to store these exempted requests, you’ll need to log these requests externally.
- A high number of requests may result in
5xxerrors. These can be addressed the same as you would429errors.
App and account limits
The following limits apply for creating legacy apps, webhook subscriptions, and CRM extension settings.- You can create up to 100 legacy public apps per developer account.
- You can create up to 20 legacy private apps per HubSpot account.
- You can create up to 1,000 webhook subscriptions per app.
- You can create up to 25 CRM extension settings per legacy public app.
API-specific limits
Some features and APIs have more limits that are listed below. Additional limis for each API can also be found on an API’s associated guide (e.g., the exports API).Timeline event limits
Timeline events in a legacy public app are subject to the following limits:- You can create up to 750 timeline event types per public app.
- You can create up to 500 properties per timeline event type.
- Each serialized event instance has the following size limits:
- 500 bytes for the event instance ID
- 510 KB per property/token
- 1 MB in total size for the event instance
Custom event limits
Custom events are subject to the following limits:- There is a limit of 500 unique event definitions per account.
- There is a limit of 30 million event completions per month.
- The send custom event completions endpoint supports up to 1250 requests per second.
- The custom event completion batch endpoint supports batches of 500.
Service limits
Learn more about service limits and pricing on HubSpot’s Product & Services Catalog.Rate limit error responses
Any app or integration exceeding its rate limits will receive a429 error response for all subsequent API calls. Requests resulting in an error response shouldn’t exceed 5% of your total daily requests. If you plan on listing your app in the HubSpot App Marketplace, it must stay under this 5% limit to be certified.
The 429 response will have the following format:
message and policyName will indicate which limit you hit (either daily or secondly).
The daily limit resets at midnight based on your time zone setting.
The following table details the rate limit headers included in the response of each API request to HubSpot, subject to the exceptions listed below the table.
| Header | Description |
|---|---|
X-HubSpot-RateLimit-Daily | The number of API requests that are allowed per day. Note that this header is not included in the response to API requests authorized using OAuth. |
X-HubSpot-RateLimit-Daily-Remaining | The number of API requests still allowed for the current day. Note that this header is not included in the response to API requests authorized using OAuth. |
X-HubSpot-RateLimit-Interval-Milliseconds | The window of time that the X-HubSpot-RateLimit-Max and X-HubSpot-RateLimit-Remaining headers apply to.For example, a value of 10000 would be a window of 10 seconds. |
X-HubSpot-RateLimit-Max | The number of requests allowed in the window specified in X-HubSpot-RateLimit-Interval-Milliseconds.For example, if this header had a value of 100, and the X-HubSpot-RateLimit-Interval-Milliseconds header was 10000, the enforced limit would be 100 requests per 10 seconds. |
X-HubSpot-RateLimit-Remaining | The number of API requests still allowed for the window specified in X-HubSpot-RateLimit-Interval-Milliseconds. |
Address rate limit issues
The sections below detail two possible ways you can reduce the volume of API traffic if you repeatedly hit your API request limit. If you’re running into theTEN_SECONDLY_ROLLING limit, you should throttle the requests that your app is making to stay under that limit. In addition to throttling the requests, or if you’re running into the daily limit, check out the suggestions below.
If you find that you’re still hitting the call limits after looking through these suggestions, please post on HubSpot’s developer forums. You should include as many details as possible about the APIs you’re using, how you’re using them, and which limit you’re hitting.