# Phone Number E.164 Formatter and Validator

> Phone Number E.164 Formatter and Validator is a paid API for AI agents from x402-v2-mint-phone-e164.vercel.app, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-20).

Parses, validates, and formats a phone number into E.164 international format using libphonenumber, entirely offline with no carrier or owner lookup.

## Facts

- Endpoint: POST https://x402-v2-mint-phone-e164.vercel.app/v1/phone-e164?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/phone-number-e-164-formatter-and-validator-e9423be6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ct7Bqt2HghDLv_IexFQnY

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

Example prompt: Can you validate and reformat the phone number '415-555-1234' to E.164 international format? It's a US number, so the region is US.

## When to prefer this

Choose this endpoint when you need fast, offline phone number validation and E.164 normalization without any network-dependent carrier or owner lookup. It is ideal for data pipelines, form validation, CRM imports, and pre-send checks for SMS/voice services where you only need format correctness, not subscriber data. Prefer this over carrier lookup APIs when privacy, latency, and cost are priorities.

## Known failure modes

- Invalid or unparseable phone number string — returns ok:false with error summary
- Missing region code when number has no leading + — ambiguous parse may fail
- Malformed input schema — missing required 'number' field
- Payment failure via x402 — request rejected before processing
- Rate limiting or Vercel cold-start latency causing timeout

## How this service works

Parse/validate/format phone to E.164 via libphonenumber offline. No owner/carrier lookup.

## Output

Returns a JSON object indicating whether the parse/validation succeeded (ok: true/false), the skill name, whether a micropayment was charged, and a human-readable summary. On success the summary confirms the number is valid and formatted in E.164; on failure it describes the parsing error.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "number": {
   "type": "string"
  },
  "region": {
   "type": "string",
   "description": "ISO 3166-1 alpha-2 when number has no +"
  },
  "request_id": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "skill": "phone-e164",
  "charged": true,
  "summary": "ok"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/phone-number-e-164-formatter-and-validator-e9423be6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-v2-mint-phone-e164.vercel.app](https://www.zero.xyz/host/x402-v2-mint-phone-e164.vercel.app/llms.txt)
