# code402 E.164 Phone Number Validator

> code402 E.164 Phone Number Validator is a paid API for AI agents from hcrb.in, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-12).

Validates E.164-formatted international phone numbers offline and deterministically, returning validity, reason, country, and normalized form

## Facts

- Endpoint: POST https://hcrb.in/v1/tools/e164-check/call?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/code402-e-164-phone-number-validator-cad2e3a1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zddDKV8VKpyaApNapaVpJ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability code402-e-164-phone-number-validator-cad2e3a1 -d '<json body>'
```

Example prompt: Can you check whether +14155552671 is a valid E.164 phone number and tell me what country it belongs to?

## When to prefer this

Choose this endpoint when you need fast, offline, deterministic phone number validation with no ML or external lookups — ideal for data pipelines, form validation, and CRM cleanup where privacy and consistency matter. Prefer it over live telecom APIs when you don't need to verify whether a number is actually active or reachable, only that it's correctly structured.

## Known failure modes

- Malformed or missing phone number input returns valid: false with a reason explaining the format issue
- Numbers with valid format but unassigned country codes may return valid: false
- Non-E.164 strings (e.g. national formats without +) may fail format checks
- Rate limit exceeded beyond 3 free daily calls without payment results in HTTP 402
- Network connectivity issues may prevent reaching the endpoint

## How this service works

Offline deterministic checks (no ML, no scraping) for business identifiers and rental due-diligence, paid per call via x402 (gasless EIP-3009 USDC on Base). Checksum-verifiable (IBAN, LEI, VAT, ABA, ISBN, SEDOL…) vs format-only (EIN, IFSC, SWIFT/BIC…) — every response returns a scope field. Non-custodial, signed receipts. First 3 calls/day free.

## Output

Returns a JSON object with: valid (boolean indicating whether the number passes E.164 validation), reason (human-readable explanation of the result), scope (indicates whether validation is checksum-based or format-only), country (ISO country code inferred from the number), normalized (canonical E.164 representation of the number), and tool (identifier for the tool used).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "phone"
   ],
   "properties": {
    "phone": {
     "type": "string",
     "description": "International phone number, e.g. +14155552671."
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "schema": {
  "type": "object",
  "required": [
   "valid",
   "reason"
  ],
  "properties": {
   "tool": {
    "type": "string"
   },
   "scope": {
    "type": "string"
   },
   "valid": {
    "type": "boolean"
   },
   "reason": {
    "type": "string"
   },
   "country": {
    "type": "string"
   },
   "normalized": {
    "type": "string"
   }
  }
 },
 "example": {
  "valid": true,
  "reason": "checksum valid"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/code402-e-164-phone-number-validator-cad2e3a1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hcrb.in](https://www.zero.xyz/host/hcrb.in/llms.txt)
