const options = {
method: "POST",
headers: {
"x-api-key": "<your-api-key>",
"Content-Type": "application/json",
},
body: JSON.stringify({
classificationId: "<classification-id>",
url: "https://example.com/document.pdf",
}),
};
fetch("https://api.getomni.ai/classify", options)
.then((response) => response.json())
.then((response) => console.log(response))
.catch((err) => console.error(err));