Turn off two-factor authentication
curl --request DELETE \
--url https://api.glassmarkets.io/v1/user/totp/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.glassmarkets.io/v1/user/totp/"
headers = {"Authorization": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: '<api-key>'}};
fetch('https://api.glassmarkets.io/v1/user/totp/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Account
Turn off two-factor authentication
Turns off two-factor authentication. Needs your password and a current code.
Turn off two-factor authentication
curl --request DELETE \
--url https://api.glassmarkets.io/v1/user/totp/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.glassmarkets.io/v1/user/totp/"
headers = {"Authorization": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: '<api-key>'}};
fetch('https://api.glassmarkets.io/v1/user/totp/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
Token-based authentication with required prefix "Token ". Example: "Token 9944b09199c62bcf9418ad846dd0e4bbdfc6ee4b"
Response
204
No response body

