Client Configuration

All configuration options with their defaults:

Timeouts

Client-level timeout

Per-request timeout

Disable timeout

Retries

The SDK automatically retries on connection errors, timeouts, and HTTP 408/409/429/5xx responses with exponential backoff (starting at 0.5s, max 8s, with jitter).

with_options() — Client Overrides

Create a new client with overridden settings without mutating the original:

Per-Request Overrides

Every resource method accepts keyword arguments for single-request customization:

Raw Response Access

Access the raw HTTP response (headers, status code) while still getting typed parsing:
Works with all resources including fee schedule results:
This is useful for:
  • Inspecting response headers (rate limit info, request IDs)
  • Debugging API interactions
  • Accessing metadata not included in the typed model
Raw response methods bypass the SDK’s automatic retry logic. If a request made via with_raw_response fails due to a transient error (timeout, 429, 5xx), it will not be retried automatically. Handle retries manually when using raw responses.

Using Types Directly

All response models are available for import and type hinting:

Custom HTTP Client

Pass a pre-configured httpx.Client for full control over the HTTP layer: