Error
A valid request URL is required to generate request examples{
"secret": "<string>",
"otpauth_url": "<string>",
"qr_data_uri": "<string>"
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}Two-factor
Start two-factor setup
Generates a secret and returns the QR to scan. It does not turn two-factor on — that only happens once the user proves they can produce a code, so an abandoned setup never locks anyone out.
POST
/
v1
/
account
/
two-factor
/
setup
Error
A valid request URL is required to generate request examples{
"secret": "<string>",
"otpauth_url": "<string>",
"qr_data_uri": "<string>"
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}{
"error": {
"code": "forbidden",
"message": "your role does not allow this action"
}
}