Check Phone WhatsApp Registration Status & Enrich Public Business KYC Signals in Python & MCP
Fintech, marketplace, and B2B SaaS onboarding teams need to know whether an international phone number is an active WhatsApp line and corresponds to a real commercial business before burning $0.045–$0.095 on SMS OTPs or manual KYB reviews. Calling phone.whatsapp.status on POST https://api.agentapigate.ai/v1/invoke (or via Remote Streamable HTTP MCP) validates ITU-T E.164 syntax, checks boolean WhatsApp registration status, and matches verified public commercial storefront listings at $0.0015/call with a 7-day cache under one non-expiring pay-as-you-go USD balance.
Registration Status + Public Commercial Entities Only: phone.whatsapp.status strictly returns E.164 numbering attributes, boolean WhatsApp account registration reachability (valid / invalid), and publicly listed commercial storefront metadata (business_name, category, public_address, website). Consumer profile imagery, private subscriber display names, and personal status strings are never scraped, returned, or stored.
Test Phone E.164 Routing, WhatsApp Reachability & Public Business Signals
Confirmed active WhatsApp registration and matched verified public commercial storefront attributes (category, website domain, public address). Zero consumer personal fields accessed.
import asyncio, os, uuid, httpx
API_URL = "https://api.agentapigate.ai/v1/invoke"
HEADERS = {
"Authorization": f"Bearer {os.environ['AAG_API_KEY']}",
"X-AAG-Max-Cost": "0.005", # Hard per-call USD ceiling
}
async def enrich_merchant_kyc(phone: str, work_email: str, company_name: str) -> dict:
"""Strictly checks WhatsApp registration + public business/KYB registries (zero consumer PII)."""
async with httpx.AsyncClient(timeout=20.0) as client:
wa_task = client.post(
API_URL,
headers={**HEADERS, "Idempotency-Key": f"wa-{uuid.uuid4()}"},
json={
"capability": "phone.whatsapp.status",
"params": {"phone": phone, "include_business_lookup": True},
},
)
mx_task = client.post(
API_URL,
headers=HEADERS,
json={"capability": "email.verify.syntax_mx", "params": {"email": work_email}},
)
kyb_task = client.post(
API_URL,
headers=HEADERS,
json={"capability": "kyb.company.lei_vat", "params": {"query": company_name}},
)
wa_res, mx_res, kyb_res = await asyncio.gather(wa_task, mx_task, kyb_task)
wa = wa_res.json()["data"]
mx = mx_res.json()["data"]
kyb = kyb_res.json()["data"]
return {
"e164": wa["e164"],
"whatsapp_registered": wa["whatsapp_registered"],
"public_business": wa["public_business"],
"corporate_mx_verified": mx["is_corporate_domain"],
"gleif_lei_matches": kyb.get("count", 0),
"allow_sms_otp": wa["whatsapp_registered"] and not mx["is_disposable"],
}
if __name__ == "__main__":
print(asyncio.run(enrich_merchant_kyc("+917000370003", "ops@stripe.com", "Stripe")))HTTP/2 200 OK
x-aag-request-id: req_wa_8f41c092e7b4
x-aag-cost-usd: 0.001500
x-aag-tokens-est: 164
x-aag-latency-ms: 890
{
"ok": true,
"meta": {
"request_id": "req_wa_8f41c092e7b4",
"endpoint": "phone.whatsapp.status",
"format": "json",
"cost_usd": 0.0015,
"tokens_est": 164,
"raw_tokens_est": 880,
"tokens_saved_pct": 81,
"latency_ms": 890,
"cached": false,
"content_trust": "external_untrusted"
},
"data": {
"query_phone": "+91 70003 70003",
"e164": "+917000370003",
"e164_valid": true,
"country_code": "IN",
"calling_code": "91",
"national_number": "7000370003",
"country_region": "India",
"is_reserved_test_range": false,
"whatsapp_registered": true,
"registration_status": "valid",
"is_public_business_listed": true,
"public_business": {
"business_name": "JioMart Digital Commerce Support",
"category": "E-Commerce & Grocery Fulfillment",
"public_address": "Navi Mumbai, Maharashtra, India",
"website": "https://www.jiomart.com",
"domain": "jiomart.com",
"rating": 4.2,
"reviews_count": 1480
},
"data_governance_scope": "registration_status_and_public_business_only"
}
}Stateless Per-Call Ledger vs Session-Instance Bridges & Monthly KYC Contracts
Why Stateless Pay-Per-Call Beats Session Bridges & Monthly KYC Bundles
Self-managed WhatsApp Web session containers look cheap until a burst of 500 onboarding checks triggers number bans, QR re-authentication downtime, and residential proxy bills.
| Evaluation Dimension | AgentAPIGate Stateless Gateway | Session-Instance Bridges ($29–$49/Instance) | Enterprise KYC SaaS Suites |
|---|---|---|---|
| Pricing & Minimum Commitment | $0.0015/call ($1.50/1K) · $0/mo fee · $9 PAYG never expires | $29–$49/mo per linked SIM instance + proxy ops | $149–$1,490/mo annual seat or expiring tier |
| Session Maintenance & Ban Risk | Zero SIM cards, zero QR scans, zero headless WhatsApp containers to babysit | Frequent session disconnects, low per-instance RPS, SIM replacement overhead | Managed SaaS, but locked behind sales-led contracts |
| Repeat Lookup Cost (7-Day Window) | 604,800s deterministic cache (<10 ms cache hit) | Re-queries live session unless you build custom Redis | Typically billed again per API transaction |
| Malformed / Fictional Number Cost | Pre-flight ITU-T E.164 & reserved 555/Ofcom range detection; $0 on upstream 5xx | Consumes instance rate-limit budget | Often billed as a standard lookup unit |
| Multi-Signal B2B KYB Chaining | Same key unlocks kyb.company.lei_vat, email.verify.syntax_mx & maps.google.place_details | WhatsApp-only; requires 3–4 separate vendor bills | Separate add-on SKUs per data bureau |
| AI Agent & Machine Payment Rails | Native Remote MCP + scoped aag_agent_* USD caps + x402 Base/Solana USDC | Custom webhook wrappers only; no native x402 | Legacy REST + IP allowlists; zero MCP or x402 |
Composable 5-Signal B2B Merchant KYC Stack ($0.0040 Total for Full Triad)
Instead of relying on invasive consumer data brokers, high-assurance B2B risk engines triangulate five orthogonal commercial signals from the AgentAPIGate unified API catalog in a single parallel fan-out.
| Capability ID & MCP Tool | Compliance-Safe Commercial Signal | Price / Call | Cache Window |
|---|---|---|---|
| phone.whatsapp.status MCP: phone_whatsapp_status | ITU-T E.164 normalization, reserved-range filter, boolean WhatsApp registration status, and matched public commercial storefront listing. | $0.0015 | 7 days (604,800s) |
| maps.google.place_details MCP: maps_google_place_details | Street address verification, commercial operating category, business hours, aggregate review count, and official corporate website URL. | $0.0030 | 30 min (1,800s) |
| email.verify.syntax_mx MCP: email_verify_syntax_mx | Zero-SMTP passive RFC 5322 syntax validation, disposable/burner domain blocklist, role-account detection, and live DNS MX provider classification. | $0.0005 | 1 hour (3,600s) |
| kyb.company.lei_vat MCP: kyb_company_lei_vat | Official GLEIF Legal Entity Identifier (LEI) status, registration authority ID, legal jurisdiction, and EU VIES VAT cross-check. | $0.0010 | 24 hours (86,400s) |
| intel.domain.whois_rdap_dns_ssl MCP: domain_whois_dns_ssl | Domain registration age via RDAP, Certificate Transparency TLS SAN records, and DNS SPF/DMARC posture to catch newly registered shell domains. | $0.0010 | 1 hour (3,600s) |
Lock Onboarding Workers with Scoped Sub-Keys
When deploying autonomous KYC triage agents in Claude Code, CrewAI, LangGraph, or serverless webhooks, mint a dedicated aag_agent_* sub-key restricted solely to the b2b, local, and intel packs with a daily USD spend cap.
- Pack Allowlist:
["b2b", "local", "intel"]blocks unrelated social or ad queries. - Read-Only + Daily Cap: Prevents any mutation calls and stops runaway retry loops automatically at your exact budget.
- Idempotency-Key Deduplication: Webhook retries within the idempotency window never double-charge your balance.
curl -sS -X POST "https://api.agentapigate.ai/v1/keys" \
-H "Authorization: Bearer $AAG_MASTER_SESSION_OR_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "kyc-onboarding-worker-prod",
"daily_budget_usd": 5.00,
"allowed_packs": ["b2b", "local", "intel"],
"allowed_endpoints": [
"phone.whatsapp.status",
"email.verify.syntax_mx",
"kyb.company.lei_vat",
"maps.google.place_details",
"intel.domain.whois_rdap_dns_ssl"
],
"read_only": true
}'Phone WhatsApp Status & Business KYC API — Frequently Asked Questions
How can I check if a phone number has WhatsApp in Python or via MCP without managing QR sessions?
Send a single authenticated POST request to https://api.agentapigate.ai/v1/invoke with capability set to "phone.whatsapp.status" and params {"phone": "+917000370003", "include_business_lookup": true}, or mount https://mcp.agentapigate.ai/mcp in Claude Code, Cursor, or your custom MCP agent. No WhatsApp Web containers, SIM cards, or QR pairing loops are required.
What exact fields does phone.whatsapp.status return, and does it expose consumer personal PII?
Strictly compliance-safe signals only: ITU-T E.164 validity, country calling code, reserved/fictional range detection, boolean whatsapp_registered status ("valid" or "invalid"), and—when matched—public commercial business directory metadata (business_name, category, public_address, website, domain, rating, reviews_count). It never fetches or exposes consumer profile photos, personal subscriber names, or private status text.
How does 7-day deterministic caching reduce B2B KYC and onboarding verification costs?
Merchant onboarding and fraud workflows frequently re-evaluate the same phone number across signup, checkout, and payout stages. AgentAPIGate caches normalized E.164 WhatsApp registration and public business results for 604,800 seconds (7 days), returning cached lookups in under 10 ms at $0.0000 upstream burn.
Why run a WhatsApp status and E.164 pre-flight check before sending SMS OTP codes?
International SMS OTP delivery typically costs $0.045 to $0.095 per message in high-growth markets (India, Brazil, Indonesia, Nigeria, UAE) and suffers from SMS pumping fraud. Pre-screening numbers at $0.0015/call filters out unallocated ranges, malformed numbers, and dead burner lines before carrier SMS fees are incurred.
Which payment rails and budget guardrails are supported for production KYC pipelines?
phone.whatsapp.status runs on non-expiring prepaid USD balance (from $9 one-time via Stripe card, Apple Pay, or 0%-fee USDC/USDT/SOL crypto) and zero-signup Coinbase x402 v2 Base/Solana USDC micropayments. You can issue read-only aag_agent_* sub-keys locked to the b2b/intel packs with hard daily USD ceilings.