Anonymize profiles
curl --request POST \
--url https://api.funnelfox.io/public/v1/profiles/anonymize \
--header 'Content-Type: application/json' \
--header 'Fox-Secret: <fox-secret>' \
--data '
{
"": [
"01H8XGJWBWBAQ4ZZ1Q5Z9Z9Z9"
]
}
'import requests
url = "https://api.funnelfox.io/public/v1/profiles/anonymize"
payload = { "": ["01H8XGJWBWBAQ4ZZ1Q5Z9Z9Z9"] }
headers = {
"Fox-Secret": "<fox-secret>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Fox-Secret': '<fox-secret>', 'Content-Type': 'application/json'},
body: JSON.stringify({'': ['01H8XGJWBWBAQ4ZZ1Q5Z9Z9Z9']})
};
fetch('https://api.funnelfox.io/public/v1/profiles/anonymize', 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.funnelfox.io/public/v1/profiles/anonymize",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'' => [
'01H8XGJWBWBAQ4ZZ1Q5Z9Z9Z9'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Fox-Secret: <fox-secret>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.funnelfox.io/public/v1/profiles/anonymize"
payload := strings.NewReader("{\n \"\": [\n \"01H8XGJWBWBAQ4ZZ1Q5Z9Z9Z9\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Fox-Secret", "<fox-secret>")
req.Header.Add("Content-Type", "application/json")
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.funnelfox.io/public/v1/profiles/anonymize")
.header("Fox-Secret", "<fox-secret>")
.header("Content-Type", "application/json")
.body("{\n \"\": [\n \"01H8XGJWBWBAQ4ZZ1Q5Z9Z9Z9\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.funnelfox.io/public/v1/profiles/anonymize")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Fox-Secret"] = '<fox-secret>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"\": [\n \"01H8XGJWBWBAQ4ZZ1Q5Z9Z9Z9\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "Anonymized 3 profiles"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"not_found": [
"<string>"
]
}API Reference
Anonymize profiles
Permanently removes personally identifiable information (PII) from one or more profiles and all of their sessions. Built for GDPR/CCPA “right to erasure” requests.
To trigger the endpoint, pass an object containing the profile IDs in the request body.
The operation runs in a single transaction and is all-or-nothing: if any profile ID is unknown or belongs to another project, nothing is changed and a 404 is returned.
Clears each profile’s email, phone number, and stored password hashes, and wipes the IP address, user agent, submitted form answers, postal code, and tracking cookies from every associated session. Transactions and subscriptions are retained.
POST
/
profiles
/
anonymize
Anonymize profiles
curl --request POST \
--url https://api.funnelfox.io/public/v1/profiles/anonymize \
--header 'Content-Type: application/json' \
--header 'Fox-Secret: <fox-secret>' \
--data '
{
"": [
"01H8XGJWBWBAQ4ZZ1Q5Z9Z9Z9"
]
}
'import requests
url = "https://api.funnelfox.io/public/v1/profiles/anonymize"
payload = { "": ["01H8XGJWBWBAQ4ZZ1Q5Z9Z9Z9"] }
headers = {
"Fox-Secret": "<fox-secret>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Fox-Secret': '<fox-secret>', 'Content-Type': 'application/json'},
body: JSON.stringify({'': ['01H8XGJWBWBAQ4ZZ1Q5Z9Z9Z9']})
};
fetch('https://api.funnelfox.io/public/v1/profiles/anonymize', 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.funnelfox.io/public/v1/profiles/anonymize",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'' => [
'01H8XGJWBWBAQ4ZZ1Q5Z9Z9Z9'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"Fox-Secret: <fox-secret>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.funnelfox.io/public/v1/profiles/anonymize"
payload := strings.NewReader("{\n \"\": [\n \"01H8XGJWBWBAQ4ZZ1Q5Z9Z9Z9\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Fox-Secret", "<fox-secret>")
req.Header.Add("Content-Type", "application/json")
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.funnelfox.io/public/v1/profiles/anonymize")
.header("Fox-Secret", "<fox-secret>")
.header("Content-Type", "application/json")
.body("{\n \"\": [\n \"01H8XGJWBWBAQ4ZZ1Q5Z9Z9Z9\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.funnelfox.io/public/v1/profiles/anonymize")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Fox-Secret"] = '<fox-secret>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"\": [\n \"01H8XGJWBWBAQ4ZZ1Q5Z9Z9Z9\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "Anonymized 3 profiles"
}{
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>",
"not_found": [
"<string>"
]
}Was this page helpful?
⌘I
