Skip to main content

Installation

Quick start

Configuration

The client accepts a string (API key) or a config object:

Resources

The client exposes resource modules following a consistent pattern:

Error handling

The SDK throws typed errors that you can catch and handle:
All error classes extend APIError, which extends BoroughError:

Retries

The SDK automatically retries on 429 (rate limit) and 5xx (server error) responses with exponential backoff. Default: 2 retries, starting at 500ms. The Retry-After header is respected when present.

TypeScript

The SDK is fully typed. All request parameters and response types are exported:

Next steps