n8n + Temp Mail: Automate Email Verification in No-Code Workflows
Developer
By the zephbox teamPublished Updated 4 min read
How we write these: product details are checked against the current zephbox API and site behavior on the date shown. Spotted a mistake? Tell us and we correct it (editorial policy).
You can automate email verification checks in n8n with HTTP Request nodes only, no custom code. Create an inbox, trigger the signup, wait for the verification email with one long-poll request, and read the extracted code. The same node layout works in Zapier, Make or any tool with a generic HTTP step. This guide gives the node-by-node configuration and the failure handling most tutorials leave out.
Before you start
- A Full Access account and an API key (see pricing). In n8n, store the key as a Header Auth credential with name
X-API-Key, so it is never pasted into a node. - Base URL:
https://zephbox.com/api/developers - A way to trigger the signup you are testing: another HTTP Request node calling your app's API, or a webhook into your test environment.
The workflow, node by node
| # | Node | Configuration | Output you use |
|---|---|---|---|
| 1 | Schedule or Manual Trigger | Run hourly, or on demand | - |
| 2 | HTTP Request: create inbox | Method POST, URL /aliases/, Header Auth credential | {{ $json.alias }} |
| 3 | HTTP Request: start signup | POST to your app's signup endpoint with the alias as the email | Status 2xx |
| 4 | HTTP Request: wait for code | GET /aliases/{{ $('Create inbox').item.json.alias }}/wait-for-otp/, query timeout=20, node timeout 30 s, "Never error" off | code, link, sender |
| 5 | IF | Is code not empty | Branch |
| 6 | HTTP Request: submit code | POST to your app's verify endpoint | Status |
| 7 | HTTP Request: delete inbox | DELETE /aliases/{alias}/ | 204 |
| 8 | Slack, email or webhook | Notify on failure of any step | - |
The expressions in the table use n8n syntax; your node names may differ. The important structural point is that step 4 uses the long-poll endpoint, which blocks on the server instead of looping in your workflow.
Why long-poll suits visual workflow tools
A polling loop in a visual editor needs a Wait node, a counter, a loop-back connection and an exit condition, which is easy to get subtly wrong. wait-for-otp holds the connection for up to 20 seconds (default 15) and returns the moment a new message arrives. It only counts messages that arrive after the request starts, so start it right after the signup trigger. If your app sends the email within a second or two of step 3 that is fine; if the trigger and the request race, put step 4 in a parallel branch started before step 3.
Handling failure properly
- 408: no email in time. Route the error output to a notification that includes the alias and the time, so you can read the inbox manually. Do not retry blindly; resends can invalidate the first code.
- 403: the key's account is not on Full Access. Fix the plan, not the workflow.
- 401 or "expired": the key has expired (30 days on Full Access). Rotate it; consider a calendar reminder.
- code is empty but the call succeeded: mail arrived but nothing matched (for example an alphanumeric code). Add a branch that fetches
GET /aliases/{alias}/messages/and posts the subject to your channel. See what the extractor can match. - Cleanup on failure: use n8n's error workflow to call the delete step, or accept that inboxes expire on their own.
Using webhooks instead
If your n8n instance is reachable from the internet over HTTPS, you can let zephbox call you: add a Webhook node, register its production URL with POST /webhooks/ (HTTPS only), and each new message arrives as a signed POST. The payload carries the alias, sender, sender name and subject, not the code, so the next node calls /otp/ for that alias. Verify the X-Zephbox-Signature header (HMAC-SHA256 of the raw body, hex) before trusting it; in n8n that needs a short Code node. Details in webhooks vs. polling.
Good uses and bad uses
- Good: a scheduled synthetic check that your own signup email still arrives and the code still works; a QA workflow that provisions a test user; a monitor that alerts when verification mail stops.
- Bad: signing up to third-party services in bulk. That violates most terms of service and the anti-spam policy.
What the wait node returns
A successful call to the wait endpoint returns a JSON object with these fields, which later nodes reference by name:
{
"message_id": 1042,
"subject": "Your verification code",
"sender": "[email protected]",
"received_at": "2026-11-06T09:30:12Z",
"code": "482917",
"link": null
}Use an IF node on code or link being non-empty, and on sender matching your app's domain, before passing values on.
Cost and limits
Each run creates an inbox, so an hourly check uses 24 inboxes a day against the daily allowance on the pricing page. For frequent checks, reuse one inbox per workflow run across several steps, or lengthen the interval. The long-poll endpoint is throttled separately because it holds a server connection, so avoid running many in parallel. For the code version of this pattern, see the Python SDK guide.
Frequently asked questions
Does this work in Zapier or Make?
Yes. Any tool with an HTTP request step and custom headers can call the same endpoints.
Where do I put the API key?
Use the tool's credential store with a header named X-API-Key rather than pasting the key into the node.
How long can the wait step block?
Up to 20 seconds per request. Run a second wait if your sender is slower.
Gmail & Outlook Temp Mail That Services Can't Block
95%+ acceptance rate for Facebook, Instagram, Netflix & OTP signups.
Try zephbox Premium →