Configure the client
The client defaults to a 15-second request timeout and two retries. Set both when you construct it, and override either per request with thetimeout, maxRetries, signal, and header options each method accepts:
Retry safely
The SDK retries network failures, timeouts, HTTP408, 429, and 5xx, but only for operations that are safe to repeat. A message send is retried only when it carries an idempotency key, because a repeated send without one would create a duplicate.
When it fails
After the retries are spent, the SDK throwsRelayAPIError with the last response’s status, code, and traceId. For a send, retry yourself with the same idempotency key and body; read idempotency for key scope and the 409 conflict. A 429 carries retryAfter; wait that long before the next attempt.

