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
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET 'https://keyauth.win/api/1.3/?type=2faenable&sessionid=&name=&ownerid=&code='