Skip to content
Reviactyl v26 has been released!
For the complete documentation index, see llms.txt. This page is also available as Markdown.

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
get/account/two-factor
GET /api/client/account/two-factor HTTP/1.1
Host: reviactyl.test
Accept: */*
{
  "data": {
    "image_url_data": "text",
    "secret": "text"
  }
}

Updates a user's account to have two-factor enabled

post
Responses
200Success
application/json
objectconst: recovery_tokensRequired
post/account/two-factor
POST /api/client/account/two-factor HTTP/1.1
Host: reviactyl.test
Accept: */*
{
  "object": "text",
  "attributes": {
    "tokens": [
      "text"
    ]
  }
}

Disables two-factor authentication on an account if the password provided is valid

post
Responses
204

No content

application/json
string[]Optional
post/account/two-factor/disable
POST /api/client/account/two-factor/disable HTTP/1.1
Host: reviactyl.test
Accept: */*
[
  "text"
]

Last updated

Was this helpful?