Get a target's change history
curl --request GET \
--url https://api.glassmarkets.io/v2/organizations/targets/{id}/history/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.glassmarkets.io/v2/organizations/targets/{id}/history/"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.glassmarkets.io/v2/organizations/targets/{id}/history/', 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/v2/organizations/targets/{id}/history/"
req, _ := http.NewRequest("GET", 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.get("https://api.glassmarkets.io/v2/organizations/targets/{id}/history/")
.header("Authorization", "<api-key>")
.asString();[
{
"id": 123,
"action": "created",
"actor": {
"id": 123,
"username": "<string>"
},
"before": null,
"after": null,
"changed_fields": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z"
}
]Targets
Get a target's change history
Returns the 100 most recent changes to a target, newest first. It also works for a deleted target you could see.
GET
/
v2
/
organizations
/
targets
/
{id}
/
history
/
Get a target's change history
curl --request GET \
--url https://api.glassmarkets.io/v2/organizations/targets/{id}/history/ \
--header 'Authorization: <api-key>'import requests
url = "https://api.glassmarkets.io/v2/organizations/targets/{id}/history/"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.glassmarkets.io/v2/organizations/targets/{id}/history/', 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/v2/organizations/targets/{id}/history/"
req, _ := http.NewRequest("GET", 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.get("https://api.glassmarkets.io/v2/organizations/targets/{id}/history/")
.header("Authorization", "<api-key>")
.asString();[
{
"id": 123,
"action": "created",
"actor": {
"id": 123,
"username": "<string>"
},
"before": null,
"after": null,
"changed_fields": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z"
}
]Authorizations
metricsApiKeyAuthtokenAuth

