Skip to main content
POST
/
api
/
user
/
me
/
totp
/
confirm
Confirm and activate the authenticator-app factor
curl --request POST \
  --url https://pria.praxislxp.com/api/user/me/totp/confirm \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "123456"
}
'
{
  "success": true,
  "backupCodes": [
    "a1b2c-d3e4f"
  ]
}

Authorizations

Authorization
string
header
required

JWT token passed in authorization header

Body

application/json
code
string
required

6-digit code from the authenticator app.

Example:

"123456"

Response

TOTP activated; backup codes returned once.

success
boolean
backupCodes
string[]

10 single-use recovery codes, shown only here.