0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions132

Business → Validate Phone Number

AI-generated

Overview

The node "0CodeKit" provides a collection of no-code utility tools grouped by resource types, including business utilities. Specifically, the Business - Validate Phone Number operation allows users to validate phone numbers with or without country codes. This is useful in scenarios where you need to verify the correctness and format of phone numbers before using them for communication, marketing campaigns, customer data validation, or CRM imports.

For example, you can input a phone number like "+1-555-123-4567" and optionally specify a country code such as "US" to confirm if the number is valid according to that country's numbering plan.

Properties

Name Meaning
Phone Number The phone number to validate. Can be provided with or without the country code.
Country Code Optional. The two-letter ISO country code to use for phone number validation (e.g., US, GB).

Output

The output JSON contains the result of the phone number validation. It typically includes whether the phone number is valid, possibly normalized formats, and other metadata related to the phone number's validity. The exact structure depends on the external API response but generally confirms if the number is correctly formatted and valid for the specified country.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for the 0CodeKit service.
  • The node sends a POST request to the endpoint /business/validatephonenumber on the base URL https://prod.0codekit.com.
  • The request body includes the phone number and optional country code.
  • Proper configuration of the API key credential in n8n is necessary for authentication.

Troubleshooting

  • Invalid API Key or Authentication Errors: Ensure the API key credential is correctly set up and active.
  • Invalid Phone Number Format: If the phone number is not recognized as valid, check the formatting and ensure the correct country code is provided if applicable.
  • Missing Required Parameters: The phone number field is required; omitting it will cause errors.
  • Network Issues: Connectivity problems may prevent reaching the 0CodeKit API endpoint.
  • Unexpected API Response: If the API changes or returns unexpected data, the node might fail or produce incorrect results.

Links and References

Discussion