Configure TOTP
POST/api
Enables TOTP for the current user. code and secret are required input parameters where secret is the TOTP secret from generate_totp and code is the current code generated from the secret.
Request
- application/json
Body
array
required
Array [
- MOD2
- MOD3
- MOD2
- MOD3
]
action Actionrequired
Possible values: [configure_totp
]
code
object
nullable
anyOf
string
integer
secret
object
nullable
anyOf
string
integer
metadata
object
property name* any
Responses
- 200
- 422
Successful Response
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Messagerequired
type Error Typerequired
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...