configureApp() for app-level configuration such as UI visibility, companion app access, patient consent, appearance, locale, and network settings.
Applies to Web Component, Window API, and PostMessage. Examples on this page
use the Web Component API shape.
configureApp() is patchable and may be called multiple times.Payload shape
Usage
Patient consent
Setconsent.enabled to true to require users to confirm patient consent before an in-person recording starts or resumes. Consent is stored per interaction, so users confirm it once per interaction. Consent is disabled by default.
If the user declines, recording does not start and startRecording() rejects with FORBIDDEN. See I want users to confirm patient consent before recording for an example.
TypeScript integrations using the Web Component or React need
@corti/embedded-web@2.1.0 or later for the consent types in
configureApp().Prerequisites
- None
Input validation
debug,ui.interactionTitle,ui.aiChat,ui.documentFeedback,ui.navigation,companionApp.enabled, andconsent.enabled: Must be boolean values when provided.appearance.primaryColor: Must be a valid CSS color string ornullwhen provided.locale.interfaceLanguage: Must be a supported interface language when provided.locale.dictationLanguage: Must be a supported dictation language ornullwhen provided.locale.overrides: Keys must match known override strings.network.websocketBaseUrl: Must be a valid WebSocket URL ornullwhen provided. This is mainly for proxy deployments. See the Proxy guide.
Possible errors
INVALID_PAYLOAD: Invalid color, URL, language code, or non-boolean UI value.INTERNAL_ERROR: Failed to apply configuration.