const requestsToSend = [
["/v1/people/intelligence",{"person":{"name":"Jordan Lee","company":"Example Trading"},"tier":"low","fields":{"current_role":"Current role and employer","role_source":"URL of an official company page naming the person, if available"},"wait_seconds":20}],
["/v1/companies/intelligence",{"company":{"name":"Example Trading","website":"https://example.com"},"tier":"low","fields":{"legal_name":"Registered company name","registry_url":"Official registry entry URL, 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());
}