const requestsToSend = [
["/v1/people/intelligence",{"person":{"name":"Jordan Lee","company":"Example Market"},"tier":"low","fields":{"current_role":"Current role at the named business, if supported","business_profile":"URL of an official business page naming the person, if available"},"wait_seconds":20}],
];
for (const [path, body] of requestsToSend) {
const response = await fetch("https://api.sixtyfour.ai" + path, {
method: "POST",
headers: {"x-api-key": "YOUR_API_KEY", "Content-Type": "application/json"},
body: JSON.stringify(body),
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.json());
}