---
title: Initialization API
canonical: https://developer.unico.io/dual-api/developers/sdks-and-tools/web/web-sdk/api-reference/initialization-api
locale: en
generated_by: markdown-export
---

## Classes / Builders

| Class | Description |
|---|---|
| `UnicoCheckBuilder` | Main SDK builder |
| `UnicoConfig` | Object for credential configuration |
| `UnicoThemeBuilder` | Builder for visual customization |

## UnicoConfig methods

| Method | Type | Description |
|---|---|---|
| `setHostname(hostname)` | `String` | Hostname registered for your application |
| `setHostKey(hostKey)` | `String` | SDK Key obtained from the Onboarding team |

## UnicoCheckBuilder methods

| Method | Type | Default | Description |
|---|---|---|---|
| `setEnvironment(env)` | `SDKEnvironmentTypes` | `PROD` | Environment — `SDKEnvironmentTypes.PROD` or `SDKEnvironmentTypes.UAT` |
| `setResourceDirectory(path)` | `String` | — | Path to the additional resource files |
| `setModelsPath(path)` | `String` | — | Path to the AI model files (required for Smart camera) |
| `setLocale(locale)` | `LocaleTypes` | `PT_BR` | Capture screen language |
| `setTheme(theme)` | `UnicoTheme` | — | Custom theme built via `UnicoThemeBuilder` |
| `disableCssReset()` | — | — | Disables the SDK's default CSS Reset |
| `build()` | — | — | Returns the camera instance for `prepareSelfieCamera`/`prepareDocumentCamera` |