const response = await fetch(
"https://app.chainpatrol.io/api/v2/dispute/create",
{
method: "POST",
headers: {
"Content-Type": "application/json",
"X-API-KEY": "YOUR_API_KEY_HERE",
},
body: JSON.stringify({
content: "https://example-phishing-site.com",
email: "[email protected]", // Optional if the API key is associated with a user that has an email
description:
"This is not a phishing site, it's our legitimate marketing site.", // Optional
}),
}
);
const data = await response.json();
console.log(data);