This section provides reference material for WebSDK 2.0: exact function signatures, config and state shapes, and fixes for problems integrators commonly hit. Use it alongside the guided pages, not instead of them.
API Reference: The full API surface:
setup(),createSession(),initializeSession(), the<incode-flow>component and itsFlowConfig, and pointers to every headless manager and module component. Start here when you need exact parameter names, types, and defaults.TypeScript Types: The SDK's type definitions: how to import per-module
Config/State/Managertypes, the discriminated-union pattern used for state (withPhoneStateas the worked example), and SDK-wide types likeWarmupConfig,SessionInitOptions,Features,SpinnerConfig, andFinishStatus.Troubleshooting: Symptom-to-fix tables organized by area: camera access, WASM loading, session/token errors, iframe embedding, mobile Safari quirks, Content Security Policy, styling, build/TypeScript errors, networking, and flow-level edge cases, such as a selfie stuck in
closedor an ID capture stuck oncapture.success.
Where to start
If you know what you're building and just need the exact call signature, go to API Reference.
If you're wiring up type-safe state handling, go to TypeScript Types.
If something isn't working, check Troubleshooting before opening a support ticket. That page covers most integration issues, including camera permissions, WASM MIME types, CSP, and CORS.