Check WhatsApp Numbers in n8n with an HTTP Request Node
Set up an n8n HTTP Request node that calls the WA Lookup registration check, stores the API key as a credential and routes results, undetermined numbers and errors.

How do you check a WhatsApp number in n8n?
Add an HTTP Request node that sends POST to https://api.walookup.com/api/v1/check with a Header Auth credential named X-API-Key and a JSON body containing service_type ws and the mapped phone number. Turn on Never Error so undetermined answers reach your branches, then route on code and data.registered and write the result back to the original record.
To check a WhatsApp number in n8n, add an HTTP Request node that posts the lead's country-coded number to WA Lookup's realtime check at https://api.walookup.com/api/v1/check, with the API key stored in an n8n credential. The answer comes back in the same response, so the workflow needs no polling. Route completed results, undetermined numbers and integration errors to separate branches, then write the result back to the record it came from.
What does the input record need?
Start from a trigger you already use: a form submission, a new CRM contact or a sheet row. Before the HTTP node, make sure each item carries:
lead_id: the stable key of the CRM row you will update later;phone_e164: one phone number in E.164 form, with or without the leading+.
Normalize the phone in an earlier node (Set or Code). If the form collects country and national number separately, combine them there; do not guess a country for a local-looking number. Send rows with an empty or ambiguous phone to a "needs correction" branch instead of calling the API. The WhatsApp number format guide covers the conversion rules.
Use fictional numbers while testing, and keep real numbers and API keys out of workflow screenshots and exports.
How do you configure the HTTP Request node?
Add an HTTP Request node after normalization and set:
| Setting | Value |
|---|---|
| Method | POST |
| URL | https://api.walookup.com/api/v1/check |
| Authentication | Generic Credential Type → Header Auth |
| Header Auth credential | Name X-API-Key, Value your API key |
| Send Body | On, Body Content Type JSON |
| Options → Response | Include Response Headers and Status: on; Never Error: on |
Storing the key in a Header Auth credential keeps it out of Set nodes, exported workflow JSON and URLs. The endpoint, header and fields are documented in the WA Lookup API reference.
For the body, choose "Using JSON" and map the phone with an expression:
{ "service_type": "ws", "identifier": "{{ $json.phone_e164 }}" }
Keep service_type fixed in the workflow so a form user cannot switch to a different paid check. If you need the avatar or Business flag later, change the value to ws_avatar or ws_business; the response then adds avatar/avatar_url or business.
Why turn on Never Error?
An undetermined number returns HTTP 422 with code 42200. By default n8n treats any 4xx or 5xx status as a node failure, so that item would stop the workflow or land in the error path instead of your result branches. With Never Error and Include Response Headers and Status on, the node always outputs an item with statusCode and body, and you decide what each code means.
Network failures (no response at all) still fail the node. In the node's Settings, set On Error to "Continue (using error output)" so those items go to an alert branch rather than disappearing.
How do you route the four outcomes?
Add a Switch node after the HTTP node. With full response enabled, the business code is at {{ $json.body.code }} and the result at {{ $json.body.data.registered }}.
| Condition | Stored state | Next step |
|---|---|---|
body.code is 0 and body.data.registered is true |
Registered at check time | Continue to your contact-policy review |
body.code is 0 and body.data.registered is false |
Not registered at check time | Use another permitted channel if one exists |
body.code is 42200 |
Undetermined, not charged | Hold and retry later |
| Any other code, or the node's error output | Integration error | Alert the workflow owner; do not classify the lead |
Codes worth handling explicitly in the error branch: 40002 (invalid number, fix the input), 40100 (missing or invalid API key), 40200 (insufficient balance), 42901 (five requests already in flight; wait for the Retry-After header) and 50400 (timeout, not charged, safe to retry). The full list is in the error code table.
If you use n8n's Retry On Fail setting, apply it only to 42901, 50303 and 50400. Retrying 40002 or 40100 will fail the same way every time.
How do you write the result back without losing the record?
The HTTP node replaces the item with the API response, so the original fields are no longer in $json. Reference the earlier node instead, for example {{ $('Normalize').item.json.lead_id }}, or use a Merge node keyed on lead_id. Never match rows by position after filters or retries.
For each lead, write: the submitted number, the check used (ws), the stored state from the table above and the check time. Keep source and consent fields as they were. Before activating the workflow, run three test items: one that returns registered: true, one that returns false and one with a deliberately malformed number, and confirm each lands in the right branch with the right state.
Do not connect a send-message node directly to the "registered" branch. A registration result shows account presence at check time; it does not establish identity, consent or that a message will be delivered.
FAQ
Does this workflow send a WhatsApp message?
No. It calls a check endpoint and stores the result. Sending is a separate action with its own permission and platform rules.
Should an undetermined response be stored as not registered?
No. Code 42200 means no decision was reached and nothing was charged. Store it as undetermined and retry later.
Can n8n check several numbers in one request?
Yes. POST /api/v1/batch-check accepts up to 100 numbers in an identifiers array and returns results in the same order. Each item has exists; when it is false, that number had no result. Only one multi request per account runs at a time.
How many requests can the workflow run in parallel?
Up to five requests per account can be in flight. Beyond that the API returns 42901 with a Retry-After header, so limit the workflow's concurrency or add a Wait node.