Skip to content

WebbiSDK

The main entry point for the WebbiOS SDK. Provides unified access to all API modules.

new WebbiSDK(options?): WebbiSDK

Initializes a new WebbiSDK instance.

WebbiSDKOptions

Configuration options for the SDK.

WebbiSDK

adminUpdates: AdminUpdatesClient

Admin Updates module


ai: AiModule

Artificial Intelligence module


apiKeys: ApiKeysModule


auditLogs: AuditLogsModule


auth: AuthModule

Authentication module


backup: BackupModule


chatbot: ChatbotModule

AI Chatbot module


client: ApiClient

The core API client instance


cloudflare: CloudflareModule


crm: CrmModule


cronJobs: CronJobsModule


dashboard: DashboardModule

Dashboard module


media: MediaModule


menus: MenusModule

Menus module


notifications: NotificationsModule


permissions: PermissionsModule

Permissions module


platform: PlatformModule

Platform module


products: ProductsModule

Products module


roles: RolesModule

Roles module


settings: SettingsModule

Settings module


users: UsersModule


webhooks: WebhooksModule

onAuthError(callback): void

Sets a callback to be triggered when an authentication error occurs.

() => void

The function to call on auth error.

void


onTokensRefreshed(callback): void

Registers a callback that will be triggered when the SDK automatically refreshes the token.

(accessToken, refreshToken) => void

The callback function.

void


setRefreshToken(token): void

Sets or updates the Refresh token for automatic rotation.

string

The Refresh token string.

void


setToken(token): void

Updates the authentication token across the entire SDK.

string

The new JWT access token.

void