All constructors accept a single StructClientConfig object:
Options
Retry
Pass a retry block to enable exponential backoff on retryable failures (429, 500, 502, 503, 504, NetworkError, TimeoutError). Retry-After headers on 429 responses are honoured when present.
Hooks
onRequest and onResponse fire around every HTTP call and are useful for logging, tracing, and metrics. Hook errors are swallowed so they never break a request.
Custom base URL
Enterprise customers with a dedicated domain can point the SDK at their own host by overriding baseUrl. Include the /v1 prefix; the SDK does not add it for you.
WebSocket configuration
StructWebSocket and StructAlertsWebSocket share a similar config shape, plus reconnect and subscribe-timeout options. See WebSockets for details.
Last modified on April 14, 2026