hubspot-rate-limits

Featured

Implement HubSpot rate limiting, backoff, and request queuing patterns. Use when handling 429 errors, implementing retry logic, or optimizing API throughput against HubSpot rate limits. Trigger with phrases like "hubspot rate limit", "hubspot throttling", "hubspot 429", "hubspot retry", "hubspot backoff", "hubspot quota".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# HubSpot Rate Limits ## Overview Handle HubSpot API rate limits with proper backoff strategies. HubSpot enforces per-second and daily limits shared across all apps in a portal. ## Prerequisites - `@hubspot/api-client` installed - Understanding of HubSpot's shared rate limit model ## Instructions ### Step 1: Understand HubSpot Rate Limit Tiers | Plan | Per-Second Limit | Daily Limit | Burst | |------|-----------------|-------------|-------| | Free/Starter | 10 requests/sec | 250,000/day | -- | | Professional | 10 requests/sec | 500,000/day | -- | | Enterprise | 10 requests/sec | 500,000/day | -- | | API Add-on | 10 requests/sec | 1,000,000/day | -- | **Critical:** Limits are per HubSpot portal (account), not per app. All private apps and OAuth apps in the same portal share the same limit bucket. ### Step 2: Use SDK Built-in Retries ```typescript import * as hubspot from '@hubspot/api-client'; // The SDK has built-in retry for 429 responses const client = new hubspot.Client({ accessToken: process.env.HUBSPOT_ACCESS_TOKEN!, numberOfApiCallRetries: 3, // retries 429 and 5xx automatically }); ``` ### Step 3: Custom Backoff with Retry-After Header ```typescript async function withHubSpotBackoff<T>( operation: () => Promise<T>, config = { maxRetries: 5, baseDelayMs: 1000, maxDelayMs: 30000 } ): Promise<T> { for (let attempt = 0; attempt <= config.maxRetries; attempt++) { try { return await operation(); } catch (error: any) { if (attempt ==...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category