quiet-whale-97321
07/27/2025, 4:23 AMrapid-forest-80249
07/27/2025, 5:09 AM🔄 Sending request to API: ${JSON.stringify(requestBody)});
// ✅ Send API request using await to ensure response is captured before moving forward
const response = await fetch(apiUrl, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify(requestBody)
});
// ✅ Ensure we await the response JSON parsing
const responseData = await response.json();
console.log(📩 Response from API: ${JSON.stringify(responseData)});rapid-forest-80249
07/27/2025, 5:11 AMquiet-whale-97321
07/28/2025, 6:16 AMprehistoric-airplane-85682
07/28/2025, 1:39 PM