Wocha Docs

Enterprise widgets

SSO, SCIM, and audit widgets for customer self-service enterprise setup.

Wocha provides embeddable enterprise widgets for customer self-service: SSO configuration, SCIM provisioning, and audit log viewing. Import from @wocha/ui or the dedicated enterprise entry point.

Installation

pnpm add @wocha/ui @wocha/react
Or scaffold with the CLI
npx @wocha/cli init --framework nextjs
import { WochaSSOWidget, WochaSCIMWidget, WochaAuditWidget } from "@wocha/ui";
 
// Or the combined enterprise setup flow
import { EnterpriseSetup, SSOSetup, SCIMSetup, DomainVerification } from "@wocha/ui/enterprise";

WochaSSOWidget

Multi-step SSO setup wizard (SAML or OIDC).

<WochaSSOWidget
  organisationId="org_abc123"
  apiUrl="https://acme.api.wocha.ai/v1"
  accessToken={accessToken}
  onComplete={() => router.push("/settings/security")}
/>
PropTypeDefaultDescription
organisationIdstringOrganisation to configure
apiUrlstringCustomer API base URL
accessTokenstringOAuth access token (fetched from context if omitted)
onComplete() => voidCalled when setup finishes
appearanceWochaAppearanceVisual customisation
classNamestringAdditional class name

WochaSCIMWidget

SCIM credential management and IdP setup guides.

<WochaSCIMWidget
  organisationId="org_abc123"
  apiUrl="https://acme.api.wocha.ai/v1"
/>
PropTypeDefaultDescription
organisationIdstringOrganisation to configure
apiUrlstringCustomer API base URL
accessTokenstringOAuth access token
onComplete() => voidCalled when SCIM is enabled
appearanceWochaAppearanceVisual customisation
classNamestringAdditional class name

WochaAuditWidget

Filterable audit log viewer with export.

<WochaAuditWidget
  organisationId="org_abc123"
  apiUrl="https://acme.api.wocha.ai/v1"
  maxEvents={100}
  autoRefresh
  autoRefreshIntervalMs={30000}
/>
PropTypeDefaultDescription
organisationIdstringOrganisation whose logs to display
apiUrlstringCustomer API base URL
accessTokenstringOAuth access token
maxEventsnumberMaximum events to fetch
eventTypesstring[]Filter by event type
autoRefreshbooleanPeriodically refresh logs
autoRefreshIntervalMsnumberRefresh interval in milliseconds
appearanceWochaAppearanceVisual customisation
classNamestringAdditional class name

Enterprise setup bundle

The @wocha/ui/enterprise entry provides a tabbed setup experience with domain verification:

import { EnterpriseSetup } from "@wocha/ui/enterprise";
 
<EnterpriseSetup
  portalToken={portalToken}
  portalBaseUrl="https://console.wocha.ai"
  onComplete={() => console.log("Setup complete")}
/>

Theming

<WochaThemeProvider appearance={{ variables: { "--wocha-color-primary": "#2563eb" } }}>
  <WochaSSOWidget organisationId={orgId} apiUrl={apiUrl} />
</WochaThemeProvider>

Framework notes

Widgets require a valid access token and Customer API apiUrl. Generate portal tokens from the Wocha Console for embedded setup flows.

On this page