API

Delete masked pathname

DELETEhttps://api.visitors.now/v1/project/masked-pathnames/:pathname

Removes a masked pathname from the project.

Request

index.ts
const pathname = encodeURIComponent("/users/:id");

const res = await fetch(`https://api.visitors.now/v1/project/masked-pathnames/${pathname}`, {
  method: "DELETE",
  headers: { Authorization: `Bearer ${VISITORS_API_KEY}` },
});

const data = await res.json();

Response

{
  "maskedPathnames": []
}