Webhook Operations
Documentation for webhook configuration and events (coming soon).
Configuration
Configure webhook notifications to receive real-time alerts.
Example
typescript
const client = new XTwitterClient({
webhook: {
enabled: true,
url: 'https://your-server.com/webhook',
secret: 'your-secret-key',
events: ['account_failure', 'api_rate_limit']
}
});Event Types
account_failure- Crawler account authentication failedapi_rate_limit- API rate limit exceedederror- General error occurredwarning- Warning condition detected
Message Format
All webhook messages include:
type- Event typeseverity- Message severitytimestamp- ISO 8601 timestampsource- SDK component informationmessage- Human-readable messagedetails- Event-specific detailsmetadata- Additional context
See Webhook Notifications Guide for complete documentation.