cURL
curl --request DELETE \
--url http://studio.premai.io/api/v1/traces/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "http://studio.premai.io/api/v1/traces/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('http://studio.premai.io/api/v1/traces/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Traces API
Delete Trace
Use this endpoint to delete a trace by its ID.
DELETE
/
api
/
v1
/
traces
/
{id}
cURL
curl --request DELETE \
--url http://studio.premai.io/api/v1/traces/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "http://studio.premai.io/api/v1/traces/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('http://studio.premai.io/api/v1/traces/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Was this page helpful?