/intercom-pack:intercom-rate-limitsfrom intercom-pack
Handles Intercom API rate limits with exponential backoff, request queuing, and proactive header monitoring to avoid 429 errors.
Ships in intercom-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Intercom enforces rate limits per app and per workspace. Handle 429 errors gracefully with exponential backoff, queue-based throttling, and proactive header monitoring. This skill gives you five composable defenses — a retry wrapper, a live monitor, a request queue, request batching, and metrics — so a high-volume integration stays under the ceiling instead of spraying 429s.
The full, copy-paste TypeScript for all five lives in references/implementation.md; this page carries the limits, the header contract, and a lean skeleton so you can wire it up from here and drill in for depth.
| Scope | Limit | Notes |
|---|---|---|
| Private app | 10,000 req/min | Per app |
| Public app (OAuth) | 10,000 req/min | Per app |
| Workspace total | 25,000 req/min | Across all apps |
| Search endpoints | 1,000 req/min | /contacts/search, /conversations/search |
| Scroll endpoints | 100 req/min | Bulk data export |
Every response includes these headers — read them to throttle proactively:
X-RateLimit-Limit: <max requests per window>
X-RateLimit-Remaining: <remaining requests>
X-RateLimit-Reset: <unix timestamp when window resets>
INTERCOM_ACCESS_TOKEN (Developer Hub > Your App
Authentication) — all requests below send it as
Authorization: Bearer.
npm install intercom-client.npm install p-queue.Apply the defenses in order — each builds on the previous one. Use Write to
create a new intercom-rate-limit.ts module, or Edit to fold these into an
existing client wrapper.
Wrap every call in header-aware retry. On 429, wait until
X-RateLimit-Reset; on 5xx, exponential backoff with jitter. Skeleton:
async function withRateLimitRetry<T>(op: () => Promise<T>): Promise<T> {
// On 429: delay = (X-RateLimit-Reset * 1000) - Date.now() + 1000
// On 5xx: delay = baseDelay * 2^attempt + jitter, capped at maxDelayMs
}
Add a proactive monitor. Feed response headers into a monitor and call
waitIfNeeded() before firing when usage crosses ~90%, so you slow down
before a 429.
Throttle with a queue. Route requests through a p-queue capped at
~150 req/s to keep bursts under the per-app ceiling.
Batch to cut request count. Replace N individual lookups with OR-batched
contacts.search queries.
Emit metrics. Log remaining, usage_percent, and ms_until_reset so
you can alert before saturation.
Full implementation for every step: references/implementation.md.
Wiring these in yields three concrete artifacts in your integration:
withRateLimitRetry + queuedRequest, so transient 429/5xx are absorbed
automatically instead of surfacing as failures.intercom.rate_limit metrics (remaining,
usage percent, ms-until-reset) ready for dashboards and alerts.| Scenario | Strategy | Implementation |
|---|---|---|
| 429 with reset header | Wait until reset | Parse X-RateLimit-Reset |
| 429 without headers | Exponential backoff | 1s, 2s, 4s, 8s, 16s |
| Approaching limit (>90%) | Proactive throttle | Check remaining before request |
| Bulk operations | Queue-based | p-queue with intervalCap |
| Multiple apps hitting workspace limit | Coordinate | Shared rate limit monitor |
Absorb a burst of contact lookups. Fan out hundreds of contacts.find
calls without tripping the limit by routing each through the queue + retry
wrapper:
const contacts = await Promise.all(
userIds.map(id =>
queuedRequest(() => client.contacts.find({ contactId: id }))
)
);
Precise wait on a 429. When a response carries X-RateLimit-Reset, wait
exactly until that epoch (plus a 1s buffer) instead of guessing a backoff — see
Step 1 in references/implementation.md.
Batch email lookups. Replace 100 single-contact requests with 10 OR-batched
searches — full findContactsByEmails helper in
references/implementation.md.
Rate limiting is one layer of a hardened Intercom integration. Once retries and
throttling are in place, pair them with intercom-common-errors for full
status-code triage, and intercom-security-basics for token scoping and
webhook-signature verification.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
intercom, rate-limiting, retry-logic, api-client, throttling
24 skills in this plugin
/intercom-ci-integrationConfigure CI/CD pipelines for Intercom integrations with GitHub Actions.
Use when setting up automated testing, configuring CI with Intercom secrets,
or integrating Intercom API tests into your build process.
Trigger with phrases like "intercom CI", "intercom GitHub Actions",
"intercom automated tests", "CI intercom", "intercom pipeline".
/intercom-common-errorsDiagnose and fix Intercom API errors by HTTP status code and error type.
Use when encountering Intercom errors, debugging failed API requests,
or troubleshooting integration issues.
Trigger with phrases like "intercom error", "fix intercom",
"intercom not working", "debug intercom", "intercom 401", "intercom 429".
/intercom-core-workflow-aManage Intercom contacts: create, search, update, merge leads into users.
Use when building contact management features, syncing user data, or implementing contact search and segmentation against the Intercom REST API.
Trigger with phrases like "intercom contacts", "intercom users", "intercom leads", "create intercom contact", "search intercom contacts", "merge intercom lead".
/intercom-core-workflow-bManage Intercom conversations: create, reply, close, snooze, assign, and tag.
Use when building conversation management features, automating replies,
or implementing support workflow automation.
Trigger with phrases like "intercom conversations", "intercom reply",
"intercom assign conversation", "intercom close conversation",
"intercom snooze", "manage intercom conversations".
/intercom-cost-tuningOptimize Intercom API costs through caching, request reduction, and usage monitoring.
Use when analyzing Intercom API usage, reducing unnecessary requests,
or implementing usage tracking and budget awareness.
Trigger with phrases like "intercom cost", "intercom billing",
"reduce intercom requests", "intercom pricing", "intercom usage", "intercom budget".
/intercom-data-handlingImplement Intercom data handling for GDPR, contact export, data retention, and PII.
Use when handling sensitive Intercom contact data, fulfilling a data subject access or deletion request, redacting PII in logs, or setting retention policy for cached Intercom records.
Trigger with phrases like "intercom data", "intercom PII",
"intercom GDPR", "intercom data retention", "intercom privacy", "intercom CCPA",
"intercom data export", "intercom delete contact".
npx claudepluginhub jeremylongshore/tons-of-skills-marketplace --plugin intercom-packOther plugins' skills for the same job