POST
Set up 2FA (confirm)
Step 2 of the 2FA path. Send the session_token and the 6-digit code now showing in the user’s authenticator app. On success, 2FA is enabled. Then call Finish security setup to get tokens.

Headers

x-program-id
string
required

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

Body

application/json
session_token
string
required
Example:

"3f1c2e8a-9b4d-4e6f-8a1b-2c3d4e5f6a7b"

totp_code
string
required

6-digit code from the authenticator app.

Required string length: 6

Response

2FA enabled

success
boolean
Example:

true

data
object