Skip to main content
POST
/
api
/
user
/
me
/
totp
/
setup
Begin authenticator-app (TOTP) enrollment
curl --request POST \
  --url https://pria.praxislxp.com/api/user/me/totp/setup \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "otpauthUrl": "otpauth://totp/Praxis%20AI:user@example.com?secret=JBSWY3DPEHPK3PXP&issuer=Praxis%20AI",
  "secret": "JBSWY3DPEHPK3PXP"
}

Authorizations

Authorization
string
header
required

JWT token passed in authorization header

Response

Pending secret stored; QR/manual-entry payload returned.

success
boolean
otpauthUrl
string
Example:

"otpauth://totp/Praxis%20AI:user@example.com?secret=JBSWY3DPEHPK3PXP&issuer=Praxis%20AI"

secret
string

Base32 secret for manual entry in the authenticator app.

Example:

"JBSWY3DPEHPK3PXP"