clari-rate-limits

Featured

Handle Clari API rate limits with backoff and export job scheduling. Use when hitting 429 errors, optimizing export frequency, or scheduling bulk forecast exports. Trigger with phrases like "clari rate limit", "clari 429", "clari throttle", "clari api limits".

AI & Automation 2,266 stars 315 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

# Clari Rate Limits ## Overview The Clari API enforces rate limits per API key. Export jobs are asynchronous and queued server-side, so the primary concern is polling frequency and concurrent export requests. ## Rate Limit Behavior | Aspect | Value | |--------|-------| | Scope | Per API key | | Response on limit | HTTP 429 | | Export job queue | Server-managed, async | | Recommended polling | 5-10 second intervals | ## Instructions ### Exponential Backoff for Export Polling ```python import time import requests def poll_with_backoff( job_id: str, api_key: str, max_attempts: int = 60, base_delay: float = 5.0, max_delay: float = 60.0, ) -> dict: for attempt in range(max_attempts): resp = requests.get( f"https://api.clari.com/v4/export/jobs/{job_id}", headers={"apikey": api_key}, ) if resp.status_code == 429: retry_after = int(resp.headers.get("Retry-After", base_delay)) time.sleep(retry_after) continue resp.raise_for_status() status = resp.json() if status["status"] in ("COMPLETED", "FAILED"): return status delay = min(base_delay * (1.5 ** attempt), max_delay) time.sleep(delay) raise TimeoutError(f"Job {job_id} did not complete in {max_attempts} attempts") ``` ### Sequential Export Scheduler ```python def export_all_periods( client, forecast_name: str, periods: list[str], delay_between:...

Details

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

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

clari-performance-tuning

Optimize Clari API performance with caching, batch exports, and data pipeline efficiency. Use when exports take too long, optimizing data warehouse load times, or reducing API calls in multi-forecast environments. Trigger with phrases like "clari performance", "clari slow export", "optimize clari pipeline", "clari caching".

2,266 Updated today
jeremylongshore
AI & Automation Solid

clari-cost-tuning

Optimize Clari API usage and integration costs. Use when reducing API call volume, optimizing export frequency, or evaluating Clari license utilization. Trigger with phrases like "clari cost", "clari api usage", "reduce clari calls", "clari optimization".

2,266 Updated today
jeremylongshore
AI & Automation Featured

clari-hello-world

Export your first Clari forecast and pipeline snapshot. Use when testing Clari API connectivity, pulling forecast data, or learning the export API structure. Trigger with phrases like "clari hello world", "clari first export", "clari test api", "clari forecast export".

2,266 Updated today
jeremylongshore
AI & Automation Featured

clari-install-auth

Configure Clari API authentication with API key and set up export access. Use when connecting to the Clari API, generating API tokens, or configuring forecast data exports. Trigger with phrases like "install clari", "setup clari api", "clari auth", "clari api key", "configure clari".

2,266 Updated today
jeremylongshore
AI & Automation Featured

clari-common-errors

Diagnose and fix Clari API errors including auth failures, export issues, and data mismatches. Use when Clari API calls fail, exports return empty data, or forecast numbers do not match the UI. Trigger with phrases like "clari error", "clari not working", "clari api failure", "fix clari", "debug clari".

2,266 Updated today
jeremylongshore