Integrations · Frameworks and SDKs
Validate emails of Dropbox Sign signers
Check a Dropbox Sign signature request's signers and CCs before you send it. One module with no dependencies, called by your own server right before it sends a signature request through the Dropbox Sign API: it checks every address and tells you which ones cannot receive mail and where they sit in the request, so a mistyped address is fixed before the request goes out. It never changes the request and never calls Dropbox Sign.
Download it: email-validation-dropbox-sign.zip holds email-validation-dropbox-sign.mjs (one JavaScript module) and the MIT licence.
What you need
- An API key of ours from the API keys page with Validate addresses (on by default). Keep it on your server, never in a page.
- Your server's code that sends signature requests, in anything with
fetch(Node 22 or later, Bun, Deno, Cloudflare Workers). Copyemail-validation-dropbox-sign.mjsnext to it. - No Dropbox Sign key: the module reads the request you are about to send and nothing else.
Before you send a request
Make the check once per process, not per request: it remembers answers between requests.
import { createDropboxSignCheck } from './email-validation-dropbox-sign.mjs';
const ev = createDropboxSignCheck({ apiKey: process.env.EV_API_KEY });
const body = {
title: 'Agreement',
signers: [{ email_address: customer.email, name: customer.name, order: 0 }],
cc_email_addresses: ['legal@acme.example'],
file_urls: [documentUrl],
};
const report = await ev.checkRequest(body);
if (!report.ok) {
// report.blocked: e.g. [{ where: 'signers[0].email_address', status: 'invalid', reason: 'no_mailbox', … }]
// ask for the address again instead of sending
} else {
// send it with Dropbox Sign as you do today (POST https://api.hellosign.com/v3/signature_request/send)
}Each entry of report.results holds a recipient's email, where, status, reason, action, did_you_mean, blocked and, when it got no answer, error.
What it checks
The JSON body of signature_request/send and signature_request/send_with_template, by the field names of Dropbox Sign's API reference:
signers[].email_address, andgrouped_signers[].signers[].email_addressfor signer groups;cc_email_addresses(send) andccs[].email_address(send with a template).
It reads those names only. Building the request with a client library whose models name the fields differently (for example emailAddress)? Check the JSON body the request becomes, or pass the addresses yourself: ev.checkRecipients([{ email: customer.email, where: 'signer' }]). The same address listed twice is checked once.
Try it free first
Check one of our free test addresses (on a domain that receives no mail) without sending anything:
const report = await ev.checkRequest({
signers: [{ email_address: 'no_mailbox@sandbox.email-validation.org', name: 'Test' }],
});
console.log(report.ok, report.blocked); // false [ { where: 'signers[0].email_address', status: 'invalid', … } ]Checks of our test addresses are free. Never send a real request to them, or to any address you made up: the email would bounce.
How it decides
- What is blocked.
invalidby default.block: ['invalid', 'disposable']also blocks disposable addresses, andcatch_allcan be added too.validandunknownare never blocked: act on theactionof avalidresult if you want to (spam traps and known complainers arevalidwith the actionremove). - It fails open. A timeout (6 seconds per check by default,
timeoutMs), a network error, a rate limit, no credits or any error answer leaves that recipient unchecked (errorsays why) and never blocks it. Nothing is retried; after a rate limit the module sends nothing until our API'sRetry-Afterhas passed. A missingapiKeythrows when you make the check, so a setup mistake does not pass every request unchecked. - Answers are remembered. A verdict is kept for the process's life (10,000 addresses by default,
memoMaxEntries), so the next request to the same person costs nothing; anunknownor a failed check is asked again. - Credits. Each check uses one credit (
unknownresults, malformed and sandbox addresses are free).region: 'eu'checks in the EU, athttps://api-eu.email-validation.org. - Our key goes only to our API, redirects are never followed, and the module logs nothing.
Test it first
The module has not run against a real Dropbox Sign account. Run it with the test address above, and send your first real requests with test_mode on, before you rely on it.