Wassenger icon

Wassenger

Interact with Wassenger WhatsApp API

Actions148

Overview

This node interacts with the Wassenger WhatsApp API to manage WhatsApp sessions, specifically allowing users to request an authentication code for a WhatsApp number. This operation is useful when setting up or re-authenticating a WhatsApp device connection within the Wassenger platform.

Typical use cases include:

  • Initiating the authentication process for a new WhatsApp number/device.
  • Forcing a new authentication code request by destroying any existing session, useful if the previous session is invalid or lost.
  • Sending the authentication code to a specified phone number in E.164 format if the device has never been connected before.

For example, a user can trigger this node to send an auth code to their phone to link a WhatsApp number to their Wassenger account.

Properties

Name Meaning
WhatsApp Number The ID of the WhatsApp number/device to request the authentication code for.
Force New Authentication Boolean flag indicating whether to force destroy any existing session and request a new auth code.
Phone Number The phone number (in E.164 format, e.g., +16001234560) to which the authorization code will be sent. Required if the device was never connected before.

Output

The node outputs JSON data representing the result of the authentication code request operation. This typically includes confirmation of the request status or error details if the request failed.

No binary data output is involved in this operation.

Dependencies

  • Requires an API key credential for authenticating with the Wassenger WhatsApp API.
  • The node depends on the Wassenger API service being accessible and properly configured.
  • The "WhatsApp Number" must correspond to a valid device registered in the Wassenger system.
  • If the device is new, the "Phone Number" property must be provided to receive the auth code.

Troubleshooting

  • Common issues:

    • Missing or invalid API key credential will cause authentication failures.
    • Providing an invalid or unregistered WhatsApp Number (device ID) will result in errors.
    • Omitting the Phone Number when required (for devices never connected) will cause the request to fail.
    • Network connectivity issues may prevent communication with the Wassenger API.
  • Error messages:

    • Errors related to authorization usually indicate problems with the API key or permissions.
    • Validation errors may occur if the phone number format is incorrect or missing.
    • Session conflicts might arise if trying to request a new auth code without forcing session destruction.
  • Resolutions:

    • Verify that the API key credential is correctly set up and active.
    • Ensure the WhatsApp Number corresponds to a valid device in your Wassenger account.
    • Provide the phone number in correct E.164 format when required.
    • Use the "Force New Authentication" option to reset sessions if stuck.

Links and References

Discussion