Basic Usage
Install the package and start logging messages in minutes:Type Safety
The SDK provides full TypeScript support with built-in types for all requests and responses:Handling Errors Gracefully
The SDK throws specific error classes for different failure scenarios, making error handling straightforward:AuthenticationError- Invalid or missing API keyPermissionDeniedError- Insufficient permissionsNotFoundError- Resource not foundRateLimitError- Too many requestsValidationError- Invalid request data
Configure Retry Behavior
Automatically retry failed requests with intelligent backoff:- Retries on connection errors,
408,409,429, and5xxresponses - Maximum of 2 retries with exponential backoff
- Configurable per client or per request
Set Request Timeouts
Control how long to wait for responses:- Default timeout: 60 seconds
- Throws
APIConnectionTimeoutErroron timeout - Configurable globally or per request
Advanced Features
Access Raw HTTP Response
Get full control over the HTTP response for custom handling:Configure Logging
Control SDK logging verbosity and use custom loggers:error- Only errors (default)warn- Warnings and errorsinfo- General informationdebug- Detailed debugging info

