Skip to main content

Options

OptionTypeDescription
apiUrl requiredstringEnvironment URL, for example https://partner.sb.getid.dev or https://partner.getid.ee
jwt requiredstringSession token from POST /sdk/v2/token. During development, sdkKey works instead.
containerId requiredstringID of the HTML element to render the flow in
flowName requiredstringFlow name from the Backoffice
localestringLanguage code, for example en, de or ar_SA. See Localization for all codes.
dictionarystringName of a custom translation dictionary. See Localization.
themeModestringTheme to use when the flow has Light & Dark themes, for example light. See Flows.
metadata.externalIdstringYour customer or session ID. Not unique.
metadata.labelsobjectUp to 30 string key-value pairs
profilearrayKnown applicant data as { category, value } items, for cross-checking and prefilling. See Applicant data.
address.countrystringExpected address for Proof of Address. ISO alpha-3.
address.postcodestringPostcode
address.addressLinestringStreet and number
address.citystringCity
acceptableDocumentsfunctionNarrows the flow’s accepted documents for this session. Returns the countries and document types to accept, as { country, documentTypes }[]. See Accepted documents per session.

Callbacks

CallbackReceivesCalled when
onComplete{ applicationId }The applicant has submitted everything. With onVerificationComplete set, after processing is done.
onFail{ code, message }The flow can’t continue
onClose{ code, message }The applicant clicks the close button. Setting this callback shows the button.
onTrackEventobjectEach step and error, for analytics
onBackNothingThe applicant clicks the back button on the first screen. Setting this callback shows the button.
onVerificationCompleteThe verification resultProcessing is done, while the applicant is on the wait screen. Setting it makes the SDK wait for the result before it finishes.
See Callbacks and events for details.

Full example