Validate and format a phone number
validate_phoneValidate and format a phone number. Validates an international phone number and returns it in E.164 and international formats, with its country and type (mobile, fixed line...). Give country (2-letter code) for numbers without the + prefix.
Costs 1 credit per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | Yes | The phone number to validate. Use the international format with the country code, e.g. "+34600000000". | |
| country | No | ISO 3166-1 alpha-2, e.g. "ES", "GB". |