Integrations
Validate phone numbers and emails in n8n
Check emails and phone numbers in an n8n workflow with the HTTP Request node and Header Auth credentials, then branch with an IF node and handle errors.
Updated 2026-11-23
This recipe checks an email or a phone number in an n8n workflow with the HTTP Request node, then branches on the answer. It works on n8n Cloud and on a self-hosted instance. There is no native Qelka node.
What you need
- An n8n instance, Cloud or self-hosted. The HTTP Request node is built in and, as far as we know, available on every plan: check yours.
- A Qelka API key. A
sk_test_key returns simulated results and never spends credits: see Test mode. - A node that supplies an email or phone, such as a Webhook, a form trigger, a spreadsheet or a CRM node.
Steps
1. Create the credential
In Credentials, create a Header Auth credential:
| Field | Value |
|---|---|
| Name | Authorization |
| Value | Bearer followed by your key |
Name it after its use, such as Validation API (production). Restrict the key to /email and /phone in the dashboard: see Restricted keys.
2. Configure the HTTP Request node
| Field | Value |
|---|---|
| Method | POST |
| URL | https://api.qelka.com/v1/email |
| Authentication | Generic Credential Type, then Header Auth, and pick your credential |
| Send Body | On |
| Body Content Type | JSON |
| Specify Body | Using JSON |
| JSON | { "email": "[email from the input]" } |
Switch the JSON field to Expression mode and drag the email field from the input panel in place of the placeholder, keeping the quotes: n8n inserts the value of each incoming item. In Options, add Timeout with 10000, since a mailbox check waits for a mail server.
For a phone check, use the URL https://api.qelka.com/v1/phone and the JSON { "phone": "[phone from the input]", "country": "US" }. The country value is a two-letter code that tells the API how to read a number without a +. See the phone reference.
Run the node once. The output holds the parsed response, with status, reason, did_you_mean and score for an email, and status and e164 for a phone.
3. Branch with a Switch or IF node
Add a Switch node on the status field of the response:
| Output | Value | What to do |
|---|---|---|
| 0 | undeliverable |
Tag the record, tell the person with did_you_mean when not empty |
| 1 | risky |
Add to a review list |
| Fallback | anything else | Continue the normal flow |
For phones, switch on status: valid means save e164, invalid means ask for a correction, unknown means the number had no + and no country. An unknown email is not bad: accept it and confirm by email. The email reference lists every reason.
4. Handle errors and retries
Open the HTTP Request node's Settings and make these choices:
| Setting | Value | Why |
|---|---|---|
| Retry On Fail | On, 3 tries, 2000 ms wait | Covers 429, 500 and 502, which succeed on a second try |
| On Error | Continue (using error output) | A failed check never stops the whole run |
The error output carries the error type from the response body. Route it to a branch that marks the record as unchecked, and alert yourself on 401 invalid_api_key, 403 forbidden and 402 insufficient_credits: those need a person to fix the key or add credits. Retrying them is pointless. No error is billed. See Errors.
The limit is 200 requests per 10 seconds per key. When a workflow loops over many items, put a Loop Over Items node before the request with a batch size of 1 and a Wait node of one second after it. Or send up to 100 values in one call to https://api.qelka.com/v1/batch, which counts as a single request: see the batch reference. See Rate limits.
Write the result back to the record and skip records that already have a status. Each check costs 1 credit for emails.
Related
Frequently asked questions
Is there a native n8n node?
Where should the API key go in n8n?
How do I keep the workflow running when a request fails?
Put this check in your product
Get an API key in under a minute. 100 free credits every month, no card required.
- 100 free credits a month
- No card
- Test keys spend nothing
- Cancel any time