validate_phone
Check phone number formatting and normalize to E.164 for a given country. Validates against numbering plan, returns international formats and line type.
Instructions
USE THIS to check a phone number is correctly formatted for its country and normalise it to E.164 before saving, dialling or texting. You MUST pass the ISO country the number ACTUALLY belongs to (e.g. GB, US, ZA) — the result depends on it, so don't reuse an unrelated country field. 'valid' means it conforms to that country's numbering plan (plausible, well-formed), NOT that the line is live or reachable. Returns E.164, national/international formats and line type.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | The phone number to validate. | |
| region | No | ISO country code the number belongs to (default GB). |