Get 2FA Method
Every account by default has 2FA with Email enabled. This API lets you get the active 2FA method for your account.
GET https://proxy.webshare.io/api/v2/twofactorauth/method/current/Request & Response
get_2fa_method_request.py
import requests
response = requests.get(
"https://proxy.webshare.io/api/v2/twofactorauth/method/current/",
headers={"Authorization": "Token APIKEY"}
)
response.json()the commands above return JSON structured like this:
response.json
{
"id": 137,
"type": "device_totp",
"active": true,
"created_at": "2023-03-04T05:34:35.553059-08:00",
"updated_at": "2023-03-04T05:34:35.553059-08:00"
}