https://api.visitors.now/v1/project/masked-pathnamesAdds a pathname pattern to aggregate in analytics output.
const res = await fetch("https://api.visitors.now/v1/project/masked-pathnames", {
method: "POST",
headers: {
Authorization: `Bearer ${VISITORS_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
pathname: "/users/:id",
}),
});
const data = await res.json();Pathname pattern to mask. Must start with /.
{
"maskedPathnames": ["/users/:id"]
}