Actions29
- Sessions Actions
- Chats Actions
- Contacts Actions
- Groups Actions
- Messages Actions
Overview
This node connects to a WhatsApp HTTP API service and allows managing WhatsApp sessions. Specifically, the "Delete Session" operation under the "Sessions" resource deletes an existing WhatsApp session identified by a session ID (phone number). This is useful for cleaning up or resetting sessions that are no longer needed or have become invalid.
Common scenarios include:
- Removing stale or inactive WhatsApp sessions.
- Resetting a session before reinitializing it.
- Managing multiple WhatsApp accounts programmatically.
Example: Deleting a session for a specific phone number to free up resources or force a new login.
Properties
Name | Meaning |
---|---|
Phone | The session ID representing the phone number of the WhatsApp session to delete. Typically, this is the phone number associated with the session. |
Output
The node outputs JSON data reflecting the result of the delete session request. This typically includes confirmation of deletion or any error messages returned by the WhatsApp API. There is no binary output.
Dependencies
- Requires connection to a WhatsApp HTTP API service.
- Needs an API authentication token or key configured in the node credentials.
- The base URL of the WhatsApp API must be set in the credentials.
- The node uses standard HTTP headers for JSON communication (
Accept
andContent-Type
set toapplication/json
).
Troubleshooting
- Invalid session ID: If the provided phone/session ID does not exist or is malformed, the API may return an error. Verify the session ID format matches what the WhatsApp API expects.
- Authentication errors: Ensure the API key or token is correctly configured and has permissions to delete sessions.
- Network issues: Check connectivity to the WhatsApp API endpoint.
- API response errors: Review the JSON output for error messages from the API to understand failure reasons.
Links and References
- Refer to your WhatsApp HTTP API provider's documentation for details on session management endpoints.
- n8n documentation on creating and using custom nodes with HTTP APIs.