Two Factor
Returns two-factor token credentials that allow a user to configure it on their account. If two-factor is already enabled this endpoint will return a 400 error
get
Responses
200Success
application/json
400
Bad request
application/json
get/account/two-factor
GET /api/client/account/two-factor HTTP/1.1
Host: reviactyl.test
Accept: */*
{
"data": {
"image_url_data": "text",
"secret": "text"
}
}Responses
200Success
application/json
objectconst: recovery_tokensRequired
400
Bad request
application/json
422
Validation error
application/json
post/account/two-factor
POST /api/client/account/two-factor HTTP/1.1
Host: reviactyl.test
Accept: */*
{
"object": "text",
"attributes": {
"tokens": [
"text"
]
}
}Last updated
Was this helpful?

