navan-rate-limits

Featured

Implement adaptive rate-limiting for the Navan REST API with exponential backoff and request queuing. Use when building bulk data operations or encountering 429 errors from Navan. Trigger with "navan rate limits", "navan throttling", "navan 429".

AI & Automation 2,944 stars 440 forks Updated today 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

# Navan Rate Limits ## Overview Navan does not publicly document its API rate limits. Developers typically discover thresholds empirically when bulk data pulls or batch operations begin returning HTTP 429 responses. This skill implements defensive rate-limiting patterns that adapt to server responses rather than relying on fixed quotas — inspecting response headers, applying exponential backoff with jitter, and queuing requests to prevent flooding. ## Prerequisites - Active Navan OAuth 2.0 credentials (see `navan-install-auth`) - Node.js 18+ (examples use native fetch) - Understanding of HTTP 429 status code and Retry-After header semantics ## Instructions ### Step 1: Build an Adaptive Retry Wrapper ```typescript interface RetryOptions { maxRetries: number; baseDelayMs: number; maxDelayMs: number; } async function navanFetch( url: string, options: RequestInit, retry: RetryOptions = { maxRetries: 5, baseDelayMs: 1000, maxDelayMs: 30000 } ): Promise<Response> { let lastError: Error | null = null; for (let attempt = 0; attempt <= retry.maxRetries; attempt++) { const response = await fetch(url, options); // Log rate limit headers when present (undocumented but sometimes returned) const remaining = response.headers.get('X-RateLimit-Remaining'); const limit = response.headers.get('X-RateLimit-Limit'); if (remaining !== null) { console.log(`Rate limit: ${remaining}/${limit} remaining`); } if (response.status !== 429) return r...

Details

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

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category