createOnboardingSessionWithPublishableKey

Mints an onboarding session using the SDK's publishable key (pk_), the client-safe credential accepted by POST /v1/onboarding_sessions. The onboarding flow calls this to bind itself to a freshly-created account so subsequent requests (e.g. IDV) authenticate as the session rather than falling back to the configured key. Not deprecated — unlike createOnboardingSession, this never sends a secret key.

Return

A Pair containing the decoded OnboardingSessionResponses.OnboardingSession on success, or a NetworkingError on failure.

Parameters

request

The request body specifying the account and onboarding steps.