Skip to content

Verify a TOTP code and complete enrollment.

POST
/account/security/totp/complete
curl --request POST \
--url https://api.siteqwality.com/account/security/totp/complete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "totp_code": "example" }'
Media type application/json
object
totp_code
required

6-digit code from the user’s authenticator app.

string
Example generated
{
"totp_code": "example"
}

TOTP enrollment complete

Media type application/json
object
ok
required
boolean
Example generated
{
"ok": true
}

Invalid TOTP code

Missing or invalid authentication

Endpoint requires a user session

Internal server error

Stytch API call failed