Enable 2FA
GET
https://keyauth.win/api/1.2/Enable Two Factor Authentication(2fa) on a client account.
:::info
This function will be called two times. The first time will generate the secret code, this code will need to be placed in your Authentication app to generate the 6 digit authentication code. Once you get the 6 digit code, you can then place that code in the "code" parameter and run the request again, this will enable 2fa.
:::
Request
Query Params
type
string
required
The type of request. (2faenable)
Example:
2faenable
sessionid
string
required
The session ID of the user logging in. Obtained by initializing on the application first and finding the session by visiting https://keyauth.cc/app/?page=sessions
name
string
required
The name of the application
ownerid
string
required
Your owner ID
code
string
required
6 Digit Two Factor Authentication code generated after making this request for the first time
Request samples
Responses
Success(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
object {0}
Example
Not configured
Last modified: 9 days ago