Enter 2FA Code
This API lets you enter the 2FA code to authenticate your account. After authenticating your account, you can replay your previously failed request.
POST https://proxy.webshare.io/api/v2/twofactorauth/codeauth/
Parameter | Type | Description |
---|---|---|
code | string | Code received in the email or generated by TOTP device. |
recaptcha | string | The recaptcha token (can be invisible recaptcha). |
Request & Response
change_email_request.py
import requests
response = requests.post(
"https://proxy.webshare.io/api/v2/twofactorauth/codeauth/",
json={
"code": "164123",
"recaptcha": "..."
},
headers={"Authorization": "Token "}
)
assert response.status_code == 204
the commands above return JSON structured like this:
response.json
{}