Skip to main content
POST
Start SCA factor enrollment

Authorizations

Authorization
string
header
required

API token authentication using format <api token id>:<api client secret>

Query Parameters

customerId
string
required

The unique identifier of the customer whose factors are listed or enrolled.

Body

application/json

Which SCA factor to begin enrolling, selected by type. SMS_OTP is not enrollable (it uses the customer's verified phone), so only TOTP and PASSKEY are valid here.

type
enum<string>
required

Discriminator selecting the TOTP factor. TOTP enrollment needs no other input at start.

Available options:
TOTP

Response

Enrollment started; the factor-specific completion material is returned.

The factor-specific material needed to complete enrollment, keyed by type: a TOTP shared secret + provisioning URI, or the WebAuthn registration options for a passkey.

type
enum<string>
required

Discriminator identifying this as the TOTP enrollment-start payload.

Available options:
TOTP
secret
string
required

The raw TOTP shared secret.

secretBase32Encoded
string
required

The Base32-encoded shared secret, suitable for manual entry into an authenticator app that does not scan QR codes.

totpUri
string
required

The otpauth:// provisioning URI (the QR-code payload) the customer's authenticator app scans to enroll the factor.

Example:

"otpauth://totp/Grid:customer@example.com?secret=ABC123&issuer=Grid"