Actions29
- Sessions Actions
- Chats Actions
- Contacts Actions
- Groups Actions
- Messages Actions
Overview
This node connects to a WhatsApp HTTP API service to retrieve the status of a specific WhatsApp session. It is useful for monitoring whether a particular WhatsApp session (identified by a phone number or session ID) is active, inactive, or in another state. Practical applications include automating checks on session availability before sending messages or performing other WhatsApp-related operations.
Properties
Name | Meaning |
---|---|
Phone | The session ID or phone number identifying the WhatsApp session whose status you want to check. This is required and typically set from credentials. |
Output
The node outputs JSON data representing the status of the specified WhatsApp session. The exact structure depends on the WhatsApp HTTP API response but generally includes fields indicating whether the session is active, connected, disconnected, or any error states related to the session.
No binary data output is produced by this node.
Dependencies
- Requires connection to an external WhatsApp HTTP API service.
- Needs an API URL and authentication credentials configured in n8n to access the WhatsApp API.
- The node expects these credentials to provide at least the base URL and an API key or token for authorization.
Troubleshooting
- Common issues:
- Invalid or missing session ID (Phone property): Ensure the session ID is correctly provided and matches an existing WhatsApp session.
- Authentication errors: Verify that the API credentials are correct and have sufficient permissions.
- Network or connectivity problems: Confirm that the WhatsApp API endpoint is reachable from the n8n instance.
- Error messages:
- Unauthorized or 401 errors indicate invalid or missing API credentials.
- 404 or "session not found" errors suggest the session ID does not exist or is incorrect.
- Timeout or network errors imply connectivity issues with the WhatsApp API server.
Links and References
- Refer to the WhatsApp HTTP API documentation provided by your WhatsApp API service provider for detailed information on session status responses and error codes.