Integration
Excel Office Script
Office Scripts can enrich spreadsheet rows with ThreatPrevent results. For larger lists, use the bulk API through Power Query.
Office Script
const response: Response = await fetch(
"https://api.threatprevent.io/v1/payment-risk",
{
method: "POST",
headers: {
"Content-Type": "application/json",
"Accept": "application/json",
"x-api-key": apiKey
},
body: JSON.stringify({
email: email
})
}
);
const data = await response.json();
const risk =
data.temporal_risk_level ||
data.risk_level ||
data.risk ||
"Unknown";Recommended spreadsheet columns
Employee / Supplier
Email / Domain / IP
Cyber Risk
Action
Checked
Status
