Web Tracking Keys
Delete Web Tracking Key
Permanently delete a publishable web tracking key
DELETE
/
api
/
v1
/
web-tracking-keys
/
{id}
Delete Web Tracking Key
curl --request DELETE \
--url https://api.sequenzy.com/api/v1/web-tracking-keys/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequenzy.com/api/v1/web-tracking-keys/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sequenzy.com/api/v1/web-tracking-keys/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sequenzy.com/api/v1/web-tracking-keys/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sequenzy.com/api/v1/web-tracking-keys/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.sequenzy.com/api/v1/web-tracking-keys/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/web-tracking-keys/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Web tracking key deleted. Cached authorization expires within one minute, so remove the snippet too."
}
{
"error": "Missing API key. Provide via x-api-key header or Authorization: Bearer <key>"
}
{
"error": "API key is missing required scope: integrations:manage"
}
{
"error": "Web tracking key not found"
}
Permanently delete a web tracking key.
Cached authorization expires within one minute after deletion. Requests from any page still running the snippet are rejected after that, so remove the snippet from your site as well. Prefer revoking with
isActive: false when you may want the key back.
Requires an API key with the integrations:manage scope.
Request
string
required
Web tracking key ID.
curl -X DELETE "https://api.sequenzy.com/api/v1/web-tracking-keys/wtk_abc123" \
-H "Authorization: Bearer YOUR_API_KEY"
Responses
{
"success": true,
"message": "Web tracking key deleted. Cached authorization expires within one minute, so remove the snippet too."
}
{
"error": "Missing API key. Provide via x-api-key header or Authorization: Bearer <key>"
}
{
"error": "API key is missing required scope: integrations:manage"
}
{
"error": "Web tracking key not found"
}
⌘I
Delete Web Tracking Key
curl --request DELETE \
--url https://api.sequenzy.com/api/v1/web-tracking-keys/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sequenzy.com/api/v1/web-tracking-keys/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sequenzy.com/api/v1/web-tracking-keys/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sequenzy.com/api/v1/web-tracking-keys/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sequenzy.com/api/v1/web-tracking-keys/{id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.sequenzy.com/api/v1/web-tracking-keys/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sequenzy.com/api/v1/web-tracking-keys/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Web tracking key deleted. Cached authorization expires within one minute, so remove the snippet too."
}
{
"error": "Missing API key. Provide via x-api-key header or Authorization: Bearer <key>"
}
{
"error": "API key is missing required scope: integrations:manage"
}
{
"error": "Web tracking key not found"
}