Enable TOTP
PUT/v2/user/mfa/totp
Enables TOTP-based two-factor authentication. Invalidates all previous sessions upon success.
Request
- application/json
Body
required
totpKey stringrequired
Possible values: >= 16 characters
and <= 16 characters
, Value must match regular expression ^(?:[a-z2-7]{8})*$
otp stringrequired
Possible values: >= 6 characters
and <= 6 characters
password stringrequired
Possible values: <= 50 characters
Responses
- 200
- 400
- 401
- 403
- 404
OK
- application/json
- Schema
- Example (from schema)
Schema
accessToken string
tokenType string
{
"accessToken": "string",
"tokenType": "string"
}
Bad Request
- */*
- Schema
Schema
string
Unauthorized
- */*
- Schema
Schema
string
Forbidden
- */*
- Schema
Schema
string
Not Found
- */*
- Schema
Schema
string
Loading...