Automation
Validate phone numbers and emails in Pabbly Connect
Check emails and phone numbers in a Pabbly Connect workflow with the API by Pabbly module, a JSON body and an Authorization header, then route with a Router.
Updated 2026-11-26
This recipe validates an email or a phone number inside a Pabbly Connect workflow with the API by Pabbly module, then routes the record by the answer with a Router. There is no native Qelka app in Pabbly Connect, and none is needed: API by Pabbly sends the request with your JSON body and headers, and the response fields become available to the next steps.
What you need
- A Pabbly Connect account. Pabbly counts usage in tasks, so check your plan's allowance before you process a large backlog.
- A Qelka API key. A
sk_test_key returns simulated results and never spends credits: see Test mode. - A trigger that supplies an email or a phone number: a form app, a CRM, or the Webhook by Pabbly trigger with its Catch Webhook event, which gives you a URL any system can post to.
The key sits in the step's headers, readable by anyone who can open the workflow. Create a key for Pabbly Connect only and restrict it to /email and /phone in the dashboard, so a leak cannot start bulk jobs on your balance. See Restricted keys.
Steps
1. Set up the trigger
Create a workflow and pick your trigger app. With Webhook by Pabbly and Catch Webhook, Pabbly gives you a URL; send it a test request so the fields show up:
curl -X POST "YOUR_PABBLY_WEBHOOK_URL" \
-H "Content-Type: application/json" \
-d '{"email": "jane@example.com", "phone": "(415) 555-0123", "country": "US"}'
2. Add the API by Pabbly action
Add an action step, choose API by Pabbly, and pick the action event Custom Request. Pabbly recommends that event when the API expects a custom JSON body: you set the method yourself and write the body in its data field. Fill it like this:
| Field | Value |
|---|---|
| Method | POST |
| Endpoint URL | https://api.qelka.com/v1/email |
| Authentication | No Auth |
| Payload Type | JSON |
| Data | {"email": "[email from the trigger]", "mode": "fast"} |
| Headers | Authorization = Bearer followed by your key, and Content-Type = application/json |
| Wrap Request In Array, if shown | No |
Write the JSON by hand and map the trigger's email where the placeholder is, keeping the double quotes around it. If the step offers Wrap Request In Array, leave it on No: when it is on, Pabbly sends the body inside square brackets, and the API answers 400 invalid_request to anything that is not a JSON object.
mode: "fast" runs the syntax, DNS, disposable and role checks and skips the mailbox check, so the request never waits on the recipient's mail server. Automation platforms give a step a limited time to answer, and fast mode stays well inside it. When the other checks pass, a fast check answers unknown with the reason smtp_not_checked; use "mode": "full" when you need to know that the mailbox exists. See the email reference.
For a phone check, use the endpoint https://api.qelka.com/v1/phone and the data {"phone": "[phone from the trigger]", "country": "US"}. The country value is a two-letter code that tells the API how to read a number written without a +; map it from a form field if you collect one. See the phone reference.
3. Send a test request
Click Save and Send Test Request. A good response looks like this, and each field becomes available to the steps after it:
{
"object": "email",
"status": "risky",
"reason": "disposable",
"did_you_mean": null,
"credits_used": 0
}
The real response has more fields, such as score, checks and domain. With a test key, disposable@example.com gives this disposable answer and undeliverable@example.com an undeliverable one, so you can test every route without spending credits.
4. Route with a Router
Add a Router by Pabbly step after the API step. Use the add route button for each case, and give each route a filter on the status field from the API step:
| Route | Filter | What to do |
|---|---|---|
| Bad email | status Equals to undeliverable |
Tag the lead, or email the person, offering did_you_mean when it is set |
| Review | status Equals to risky |
Add to a review sheet or CRM list |
| Good | status Equals to deliverable, or Equals to unknown |
Continue the normal flow |
For a single condition, a Filter by Pabbly step is enough: continue only when status Does not equal to undeliverable. An unknown email is not a bad email; the checks could not conclude, so let it through and confirm by sending a message. The email reference lists every reason.
For phones, route on status: valid means store e164, the international format every system reads; invalid means ask for a correction; unknown means the number had no + and no country. Read line_type before you send SMS: a landline usually cannot receive them.
5. Store the result
End each route with an action that writes status back to the record, such as an Email status column in Google Sheets or a field in your CRM. The stored status lets later runs skip records that are already checked, and it gives you a list of records to re-check.
Handle errors and rate limits
When the API answers with an error, Pabbly marks the API step as failed and skips the steps that depend on it, as Pabbly's support team describes it. The router does not run, and the record keeps no status. That is the fail-open behaviour you want: the contact still exists, nobody is blocked, and records without a status are the ones to check again.
| Error | Meaning | What to do |
|---|---|---|
401 invalid_api_key |
Wrong, revoked or empty key in the header | Fix the header, then re-execute the failed tasks |
403 forbidden |
The key is restricted to other endpoints | Use a key allowed on this endpoint |
402 insufficient_credits |
Your balance is empty | Add credits, then re-execute |
400 invalid_request |
The body is not valid JSON, an array, or has an unknown field | Check the Data field and Wrap Request In Array |
429 rate_limited |
More than 200 requests in 10 seconds | Re-execute later, or slow the workflow down |
500, 502 |
Temporary problem on our side | Re-execute later |
Every error body has the same shape, { "error": { "type", "message", "docs" } }, so the task history shows the type and a sentence that explains it. Pabbly lets you re-execute failed tasks from the task history, and offers automatic re-execution of failed steps as a workflow setting; check how it works on your plan. No error is billed, so re-executing a failed call costs nothing extra. See Errors.
The rate limit matters when a workflow processes a backlog, such as a spreadsheet of thousands of rows. Spread the work with a Delay step, or send up to 100 values in one call to https://api.qelka.com/v1/batch, which counts as one request: see the batch reference and Rate limits. For a whole file, a bulk file check is simpler.
Each email check costs 1 credit and each basic phone check 1. Skip records that already have a status, so a re-run trigger does not pay twice.
Related
Frequently asked questions
Is there a native Pabbly Connect app?
Which authentication should I pick in API by Pabbly?
What happens to the workflow when the API returns an error?
More in Automation
All integrationsPut 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