Skip to main content
Configuration options for the X API client

Properties

baseUrl
string
Base URL for API requests
bearerToken
string
Bearer token for authentication
accessToken
string
OAuth2 access token
oauth1
any
OAuth1 instance for authentication
headers
Record<string, string>
Custom headers to include in requests
timeout
number
Request timeout in milliseconds
retry
boolean
Whether to automatically retry failed requests
maxRetries
number
Maximum number of retry attempts