Developer

Email risk SDK

Check an email for risk from your own server, before you accept a signup. Block the fakes at the door.

What it is

The DataCops SDK is a small server-side library. Give it an email and it tells you how risky that email is, whether it is disposable or fake, and what else DataCops knows about it. Use it to block bad signups the moment they happen.

Install

Shell
npm install @datacops/services-sdk

Check an email

JavaScript
import { DCServiceSdk } from '@datacops/services-sdk';

const sdk = new DCServiceSdk({ apiKey: process.env.DATACOPS_PRIVATE_KEY });
const result = await sdk.checkEmail('[email protected]');

if (result.emailInfo.risk_label === 'high') {
  // block or challenge the signup
}

Keep your private key on the server only. Never ship it to the browser.

Was this page helpful?