Sign up and contact support to get 100 free checks.Sign up free
WA Lookup workflow illustration for How to Verify a WhatsApp Number at Signup Without Blocking Users
A visual overview of the workflow discussed in this WA Lookup article.

How do you check a new user's WhatsApp number at signup without adding friction?

Create the account first, then have your backend send the normalised number to a realtime registration check and save the result on the user record with a date. Use it to choose the first outreach channel. Never reject a signup because the number is not on WhatsApp or the check could not be decided, and use a one-time code if you need to prove the user owns the number.

Most signup forms collect a phone number without knowing whether it can be used on WhatsApp, so onboarding teams guess which channel to try first. A realtime registration check, run by your backend right after the account is created, replaces that guess with a stored, dated answer. The rule that keeps it painless: the check informs the channel choice and never decides whether the user may sign up.

What a signup check tells you, and what it doesn't

A completed check returns registered: true or registered: false for the submitted number at that moment. That is enough to decide whether to offer WhatsApp as an onboarding channel.

It is not identity verification. A registered result does not prove the user owns the number, that they typed it correctly, or that they agreed to receive WhatsApp messages. If you need proof of ownership, send a one-time code; the account check vs verification guide explains the difference. The two work well together: the code confirms the number, the registration check tells you which channels it supports.

Design the flow so it never blocks the user

  1. Collect the number with a country selector and normalise it to international format (country code plus national number, no national 0) before anything else. Formatting errors are the most common avoidable failure; WhatsApp's international format guide lists the rules.
  2. Create the account first. The user should reach the product without waiting for any check.
  3. Queue the check on your backend. A background job calls the realtime endpoint and writes the result to the user record when it returns.
  4. Store a status, not a gate: registered, not_registered or unknown, plus the check date.
  5. Let onboarding tools read the status to pick the first channel and decide whether to show a WhatsApp opt-in prompt.

Keep the API key on the server. A call from the browser would expose the key, and anyone holding it can spend your balance.

Backend example: call the check and map the outcome

The realtime endpoint is POST https://api.walookup.com/api/v1/check with the API key in the X-API-Key header. A minimal Node.js job:

async function checkWhatsAppAtSignup(e164) {
  const res = await fetch("https://api.walookup.com/api/v1/check", {
    method: "POST",
    headers: {
      "X-API-Key": process.env.WALOOKUP_API_KEY,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({ service_type: "ws", identifier: e164 }),
  });
  const body = await res.json();

  if (body.code === 0) {
    return { status: body.data.registered ? "registered" : "not_registered", checkedAt: new Date() };
  }
  // 42200: undetermined, not charged. 42901 / 50303: busy, retry after the Retry-After header.
  // 50400: timed out, not charged.
  if ([42200, 42901, 50303, 50400].includes(body.code)) {
    return { status: "unknown", retry: true };
  }
  // 40002 invalid number, 40100 bad key, 40200 insufficient balance: fix, do not retry blindly.
  return { status: "unknown", retry: false, errorCode: body.code };
}

A completed check looks like this:

{
  "code": 0,
  "msg": "ok",
  "data": {
    "service_type": "ws",
    "identifier": "+12345678900",
    "registered": true
  }
}

Two details matter for a job queue. A single check has a 60-second limit, so give your HTTP client a timeout a little above that. And the API limits how many of your requests run at once; when that limit is reached it answers 42901 immediately, without charging, together with a Retry-After header. Retry after that delay instead of in a tight loop.

Handle each outcome

Outcome What to store Next step
registered: true registered + date Offer WhatsApp as an opt-in channel
registered: false not_registered + date Start with email or SMS; hide WhatsApp prompts
42200 (undetermined) unknown + retry flag Retry later from the queue; treat as unchecked
40002 (invalid number) unknown + error Ask the user to confirm the number at a natural moment
Busy or timeout unknown + retry flag Retry after Retry-After or with a delay

Never save an undetermined check as not_registered. It returns no data, so there is no registered value to save, and it is not charged.

Keep the cost predictable

Completed checks, registered or not, draw on your balance at the price on the pricing page. To keep spend in line with signups:

  • Check each distinct number once at signup, not on every login.
  • Re-check only when the user changes their number or when a stored result is old enough that your team no longer trusts it.
  • Use ws for this flow. Avatar, Business or activity checks are useful elsewhere but are not needed to pick a channel.

To try the flow before writing code, register, contact support to request the standard trial credit, and run a few sample numbers in the dashboard's Instant check. Developers working in an AI client can also test numbers through the WA Lookup MCP server with the same API key.

Privacy and messaging rules

A registration check is not permission to message. Ask for explicit opt-in to WhatsApp messages in the signup flow, describe the check in your privacy notice, and honour opt-outs on every channel. The check does not send anything to the user's number. Store only what routing needs, a status and a date; the guide to storing results covers the fields.

FAQ

Should signup be rejected when a number is not on WhatsApp?

No. Many genuine users do not use WhatsApp or use it on another number. Use the result to pick a channel.

Does a registered result verify that the user owns the number?

No. It only shows that a WhatsApp account exists on the number. Use a one-time code to confirm ownership.

Can the check run in the browser during signup?

It should not. The API key must stay on your server, and running the check in the background keeps the form fast.

What if the check cannot be decided?

Store unknown, retry later from your queue, and treat the user as unchecked in the meantime. You are not charged for an undetermined check.

Sources