Skip to main content

Developer API for automated signups

See the API

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

The workflow, node by node

#NodeConfigurationOutput you use
1Schedule or Manual TriggerRun hourly, or on demand-
2HTTP Request: create inboxMethod POST, URL /aliases/, Header Auth credential{{ $json.alias }}
3HTTP Request: start signupPOST to your app's signup endpoint with the alias as the emailStatus 2xx
4HTTP Request: wait for codeGET /aliases/{{ $('Create inbox').item.json.alias }}/wait-for-otp/, query timeout=20, node timeout 30 s, "Never error" offcode, link, sender
5IFIs code not emptyBranch
6HTTP Request: submit codePOST to your app's verify endpointStatus
7HTTP Request: delete inboxDELETE /aliases/{alias}/204
8Slack, email or webhookNotify 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

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

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:

Example response shape, values invented
{
  "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 →

Related guides

← Generate a temporary email now
zephboxDeveloper API for automated signups
Learn more about the zephbox developer API