# E.164 Phone Number Formatter & Validator

> E.164 Phone Number Formatter & Validator is a paid API for AI agents from x402.forgemesh.io, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Parses loosely formatted phone number input and returns the E.164 standard representation, country code, and line type, with optional default-country fallback for national numbers.

## Facts

- Endpoint: POST https://x402.forgemesh.io/e164-phone-format
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/e-164-phone-number-formatter-validator-25fb37f5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jaztKx_DK6mMyrT0aluhe

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 e-164-phone-number-formatter-validator-25fb37f5 -d '<json body>'
```

Example prompt: Can you normalize this phone number to E.164 format and tell me its country and line type — the number is '(415) 555-0132' and it's a US number?

## When to prefer this

Use this endpoint when you need to normalize phone numbers to E.164 before passing them to a paid SMS/calling API, when deduplicating leads by phone, or when validating user-submitted phone input across international formats. Prefer this over rolling your own regex or using a general-purpose library when you also need line-type classification and country identification in a single call.

## Known failure modes

- Malformed or completely unrecognizable number string returns a validation error
- Missing country code on a national-format number with no default-country hint may fail to resolve
- Ambiguous number formats for some regions may produce incorrect country assignment
- Numbers that look structurally valid but are unallocated may return unknown line type

## How this service works

Parses loosely formatted phone number input and returns its E.164 standard representation, country, and line type, with a default-country hint for numbers missing a country code. Built for lead deduplication, SMS delivery systems, and validation steps that reject malformed numbers before they hit a paid messaging API.

## Output

Returns the E.164 formatted phone number (e.g. +14155550132), the detected country (ISO code), and the line type (e.g. mobile, landline, VoIP), enabling downstream validation or routing decisions.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "number": {
   "type": "string"
  },
  "country": {
   "type": "string",
   "description": "2-letter default country for national input, default US"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "e164": "+17135550142",
  "valid": true,
  "country": "US",
  "international": "+1 713 555 0142"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/e-164-phone-number-formatter-validator-25fb37f5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.forgemesh.io](https://www.zero.xyz/host/x402.forgemesh.io/llms.txt)
