Workspaces
A Workspace gives your team a domain of its own, such asyourcompany-qa.com, and the retention you choose. Sign-up forms that reject disposable domains accept it, because it isn’t on their lists, and every inbox on it can be read only with your API key.
How it works
- Your domain. Any address on it reaches ZeroDrop. Mail is filed under your key’s prefix:
signup-test@yourcompany-qa.comis the inboxk7x2-signup-test, readable only with your key (zd_k7x2_…). An address that already starts with your prefix (k7x2-swift-x7k29ab@yourcompany-qa.com) keeps its name. - Retention. Your inboxes keep their emails for the time you choose, from 1 minute to 7 days after the latest one, on your domain and under your prefix on the shared domain. Without a Workspace, it’s 30 minutes. A new email never shortens an inbox’s time, so a shorter retention applies to inboxes as they’re created. Each inbox keeps its newest 50 emails.
- One inbox per name. The domain isn’t part of the inbox name:
signup-test@on each of your domains, andk7x2-signup-teston the shared domain, all arrive in the inboxk7x2-signup-test. Give tests that run side by side different names, asgenerateInbox()does. - The domain itself. Mail to a subdomain of yours, such as
x@mail.yourcompany-qa.com, is refused: only the domain set up for your Workspace receives mail. - Encryption. As on the free tier, each email is encrypted with AES-256-GCM before it’s stored.
xn-- form).
Using your domain
Set your domain next to your key. Every client readsZERODROP_DOMAIN:
new ZeroDrop(key, { domain: 'yourcompany-qa.com' }). An address you name yourself works too: mail.waitForLatest('qa@yourcompany-qa.com') reads the inbox k7x2-qa, where ZeroDrop files that mail.