Validate Phone Number
validate_phone_numberValidate and normalize Latin American phone numbers for 15 countries, returning validity, E.164, national format, and line type to prepare numbers for WhatsApp, SMS/OTP, or CRM hygiene.
Instructions
Validate and normalize a Latin American phone number.
country is an ISO 3166-1 alpha-2 code (15 supported: CL, AR, MX, BR, CO,
PE, UY, EC, PY, VE, GT, DO, PA, CR, BO). Accepts input with or without
country code, spaces, dashes or parentheses. Returns validity, E.164 form,
a human-readable national format, and line type (mobile/landline) —
handling the tricky cases (Brazil's 9th digit, Mexico's 10-digit, Argentina's
mobile 9/15, Chile's 9-prefix). Ideal for WhatsApp, SMS/OTP and CRM hygiene.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | ||
| country | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||