AI agent instructions
AI agent instructions
429 when a rate limit is exceeded. See the API rate-limit reference for response headers.
Handling rate limits
High-level Node SDK methods do not consistently preserve HTTP status codes or response headers on thrown errors. Do not copy Python examples that inspecterror.status_code, or assume every failed request was rate-limited.
When your HTTP integration exposes a verified 429 response, honor Retry-After if provided; otherwise use bounded exponential backoff with jitter. Set a retry limit and retry only operations that are safe to repeat. Automatic rate-limit retries are not provided by the high-level client.