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));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.glassmarkets.io/v1/user/totp/"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.glassmarkets.io/v1/user/totp/")
.header("Authorization", "<api-key>")
.asString();Account
Turn off two-factor authentication
Turns off two-factor authentication. Needs your password and a current code.
DELETE
/
v1
/
user
/
totp
/
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));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.glassmarkets.io/v1/user/totp/"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://api.glassmarkets.io/v1/user/totp/")
.header("Authorization", "<api-key>")
.asString();
