Node.js SDK

This guide will walk you through to integrate Valid Indentity into your Node.js compatible API

Remember:

The SDK is compatible with both Deno and Bun.

Install the dependency

npm i valid-identities

Copy the API key

Navigate to API keys and copy one of your API keys.

Initialize the SDK

import { ValidIdentitiesClient } from 'valididentities/node';

const client = new ValidIdentitiesClient({
  apiKey: '{{API KEY}}'
});

Validate your first email address

const email = '[email protected]';

const result = await client.validateEmails({
  emails: [email]
});

console.log(result[email]);

To learn more about authentication, limits and error handling see the API Reference.