POST
Confirm 2FA setup
The second step. Send the 6-digit code now showing in the user’s authenticator app. After this, 2FA is on for the user.

Authorizations

Authorization
string
header
required

The user's id_token from authentication — the ID token, not the access_token. The program and environment come from the token.

Headers

x-program-id
string
required

Identifies the program. Can also be sent as the programId query parameter.

Body

application/json
totp_code
string
required
Required string length: 6

Response

2FA enabled

success
boolean
Example:

true

data
object