Actions83
- Instances Actions
- Client Actions
- Message Actions
- Chat Actions
- Contact Actions
- Number Actions
- Group Actions
- Channel Actions
- Label Actions
- Story Actions
Overview
This node interacts with the WaAPI API to format phone numbers associated with contacts. Specifically, the "Get Formatted Number" operation takes a raw phone number and returns it in a standardized, formatted version according to the API's formatting rules. This is useful in scenarios where consistent phone number formatting is required for display, storage, or further processing, such as CRM integrations, contact management systems, or communication platforms.
Example use cases:
- Standardizing user input phone numbers before saving them to a database.
- Formatting phone numbers for display in user interfaces or reports.
- Preparing phone numbers for sending messages or making calls through other integrated services.
Properties
| Name | Meaning |
|---|---|
| Id | Instance ID (a numeric identifier for the specific contact instance). |
| Number | Phone number to format. The input should be a string representing the phone number, e.g., "+1234567890". |
Output
The node outputs JSON data containing the formatted phone number as returned by the WaAPI service. The exact structure depends on the API response but typically includes the formatted version of the input number.
If the node supports binary data output, it is not indicated here; thus, only JSON output is expected.
Dependencies
- Requires an API key credential for authenticating with the WaAPI API.
- The node sends requests to
https://waapi.app/api/v1. - Proper configuration of the API key credential within n8n is necessary for successful operation.
Troubleshooting
Common issues:
- Invalid or missing API key credential will cause authentication failures.
- Incorrect phone number format might lead to errors or unexpected formatting results.
- Network connectivity issues can prevent reaching the WaAPI endpoint.
Error messages:
- Authentication errors usually indicate problems with the API key; verify that the key is correctly set up.
- Validation errors may occur if the phone number is malformed; ensure the number includes country code and is properly formatted.
- Timeout or network errors suggest checking internet connection or API availability.
Links and References
- WaAPI Official Website
- WaAPI API Documentation (for detailed API usage and formatting options)