Retries
Many SDK operations retry automatically on transient failures. The default policy retries on:
- HTTP
5XX responses (server errors)
- HTTP
429 responses (rate limiting)
- HTTP
409 responses (lock conflict)
- Network connection errors
Retries use an exponential backoff: 1s initial interval, 10s maximum interval, approximately 30s total budget.
Override retries for a single call
Pass a retries object in the call options to change the retry behavior for one request:
Override retries for all calls
Set retryConfig in the constructor to apply a retry policy to all requests:
Disable retries
Set strategy: "none" to disable retries entirely:
Timeouts
The SDK does not have a built-in timeout parameter. Set timeouts via the AbortSignal API when constructing a custom HTTP client.
A timed-out request throws a RequestTimeoutError. See error handling for details.
AbortSignal.timeout() is available in Node.js v17.3+, Bun v1+, and modern browsers. For older Node.js, use AbortController with setTimeout instead.