const endpoint = "https://api.jigsawstack.com/v1/ai/transcribe";
const options = {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "<your-api-key>", // Replace with your actual API key.
},
body: JSON.stringify({
url: "https://rogilvkqloanxtvjfrkm.supabase.co/storage/v1/object/public/demo/Video%201737458382653833217.mp4?t=2024-03-22T09%3A50%3A49.894Z",
webhook_url: webhookUrl, // Replace with your actual webhook URL.
}),
};
const result = await fetch(endpoint, options);
const data = await result.json();