Actions29
- Mensagem Actions
- Ticket Actions
- Contato Actions
- API Oficial Actions
- API Plus Actions
Overview
This node integrates with the WhatMaster API to perform various WhatsApp-related actions. Specifically, for the Contato resource and the Validar Número WhatsApp operation, it validates a given WhatsApp number by sending a request to the WhatMaster API.
Common scenarios where this node is beneficial include:
- Verifying if a WhatsApp number is valid before attempting to send messages.
- Ensuring contact data integrity in CRM or customer support workflows.
- Automating validation steps in ticketing or messaging systems that rely on WhatsApp communication.
Practical example:
- Before creating a new contact or sending a message, use this node to validate the WhatsApp number format and existence, reducing errors and improving message delivery success rates.
Properties
| Name | Meaning |
|---|---|
| Número do WhatsApp | The WhatsApp number to validate, in the format 5511999999999 (country code + number). |
| External Key | Optional external key for correlating requests with external systems or identifiers. |
Output
The node outputs a JSON object containing the response from the WhatMaster API regarding the WhatsApp number validation. This typically includes information about whether the number is valid and any related metadata returned by the API.
If an error occurs during validation, the output JSON will contain an error field with the error message, provided the node is configured to continue on failure.
No binary data output is produced by this operation.
Dependencies
- Requires configuration of WhatMaster API credentials, including:
- A Bearer token for authorization.
- An external code identifier used in the API endpoint URL.
- The node makes HTTP POST requests to the WhatMaster API endpoint:
https://back.whatmaster.com.br/v1/api/external/{externalCode}
Troubleshooting
Missing Credentials:
Error: "No credentials found. Please configure the WhatMaster API credentials."
Solution: Configure the required API credentials in n8n before using the node.Missing Bearer Token or External Code:
Errors indicating missing token or external code mean these must be set in the credentials.Invalid or Empty WhatsApp Number:
Error: "Número do WhatsApp é obrigatório."
Solution: Provide a valid WhatsApp number in the specified format.API Request Failures:
Network issues or invalid API responses may cause errors. Check API availability and credential validity.Operation Not Supported:
If an unsupported operation is selected, the node throws an error specifying the unsupported operation.
Links and References
- WhatMaster API Documentation (Assumed based on URL pattern; verify actual docs)
- n8n Documentation on Creating Custom Nodes
- WhatsApp Number Formatting Guidelines
