Log out
curl --request POST \
--url https://api.glassmarkets.io/v1/logout/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.glassmarkets.io/v1/logout/"
headers = {"Authorization": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: '<api-key>'}};
fetch('https://api.glassmarkets.io/v1/logout/', 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/logout/"
req, _ := http.NewRequest("POST", 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.post("https://api.glassmarkets.io/v1/logout/")
.header("Authorization", "<api-key>")
.asString();Authentication
Log out
Revokes the token that authenticated this request and clears the browser session cookie. Other tokens of the same user stay valid.
POST
/
v1
/
logout
/
Log out
curl --request POST \
--url https://api.glassmarkets.io/v1/logout/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.glassmarkets.io/v1/logout/"
headers = {"Authorization": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: '<api-key>'}};
fetch('https://api.glassmarkets.io/v1/logout/', 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/logout/"
req, _ := http.NewRequest("POST", 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.post("https://api.glassmarkets.io/v1/logout/")
.header("Authorization", "<api-key>")
.asString();
